File tree Expand file tree Collapse file tree 4 files changed +393
-3
lines changed
Expand file tree Collapse file tree 4 files changed +393
-3
lines changed Original file line number Diff line number Diff line change @@ -156,9 +156,24 @@ jobs:
156156 # Copy files from temp directory
157157 cp -r extension-temp/* "$TARGET_DIR/"
158158
159- # Verify copy
160- if [ ! -f "$TARGET_DIR/manifest.json" ]; then
161- echo "❌ Failed to copy manifest.json to $TARGET_DIR"
159+ # Verify required files were copied (including WASM pkg artifacts)
160+ REQUIRED_FILES=(
161+ "$TARGET_DIR/manifest.json"
162+ "$TARGET_DIR/content.js"
163+ "$TARGET_DIR/background.js"
164+ "$TARGET_DIR/injected_api.js"
165+ "$TARGET_DIR/pkg/sentience_core.js"
166+ "$TARGET_DIR/pkg/sentience_core_bg.wasm"
167+ )
168+ MISSING_FILES=()
169+ for file in "${REQUIRED_FILES[@]}"; do
170+ if [ ! -f "$file" ]; then
171+ MISSING_FILES+=("$file")
172+ fi
173+ done
174+ if [ ${#MISSING_FILES[@]} -ne 0 ]; then
175+ echo "❌ Extension sync incomplete. Missing required files:"
176+ printf ' - %s\n' "${MISSING_FILES[@]}"
162177 exit 1
163178 fi
164179
Original file line number Diff line number Diff line change 1+ *
2+ ! .gitignore
3+ ! sentience_core.js
4+ ! sentience_core_bg.wasm
You can’t perform that action at this time.
0 commit comments