refactor: extract asar from electron-builder output instead of custom script
This commit is contained in:
@@ -136,9 +136,17 @@ jobs:
|
||||
if: steps.version-check.outputs.SKIP == 'false'
|
||||
run: npx electron-builder --linux -c.electronDist=node_modules/electron/dist-linux --publish never
|
||||
|
||||
- name: Build asar for patch updates
|
||||
- name: Extract asar for patch updates
|
||||
if: steps.version-check.outputs.SKIP == 'false' && steps.release-type.outputs.TYPE == 'patch'
|
||||
run: npm run build:asar
|
||||
run: |
|
||||
# The asar is a byproduct of the Linux build — platform-independent (just JS)
|
||||
ASAR_SRC="out/linux-unpacked/resources/app.asar"
|
||||
ASAR_DIR="out/asar"
|
||||
mkdir -p "$ASAR_DIR"
|
||||
cp "$ASAR_SRC" "$ASAR_DIR/app.asar"
|
||||
sha256sum "$ASAR_DIR/app.asar" | awk '{print $1 " app.asar"}' > "$ASAR_DIR/checksums.sha256"
|
||||
echo "Extracted asar: $(du -h "$ASAR_DIR/app.asar" | cut -f1)"
|
||||
cat "$ASAR_DIR/checksums.sha256"
|
||||
|
||||
- name: Report build sizes
|
||||
if: steps.version-check.outputs.SKIP == 'false'
|
||||
|
||||
Reference in New Issue
Block a user