Skip to content

Commit 7f3021b

Browse files
author
SentienceDEV
committed
fix release pkg
1 parent aacc0b6 commit 7f3021b

File tree

4 files changed

+393
-3
lines changed

4 files changed

+393
-3
lines changed

.github/workflows/sync-extension.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff 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

predicate/extension/pkg/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!.gitignore
3+
!sentience_core.js
4+
!sentience_core_bg.wasm

0 commit comments

Comments
 (0)