build: fix electron_mksnapshot_zip_done check

This commit is contained in:
Samuel Attard 2020-08-22 01:17:43 -07:00 committed by GitHub
parent 02f5ffbaac
commit 3e2d959817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -779,7 +779,7 @@ step-mksnapshot-build: &step-mksnapshot-build
name: mksnapshot build name: mksnapshot build
command: | command: |
cd src cd src
if [ ! -s "src/out/Default/.electron_mksnapshot_zip_done" ]; then if [ ! -s "out/Default/.electron_mksnapshot_zip_done" ]; then
ninja -C out/Default electron:electron_mksnapshot -j $NUMBER_OF_NINJA_PROCESSES ninja -C out/Default electron:electron_mksnapshot -j $NUMBER_OF_NINJA_PROCESSES
gn desc out/Default v8:run_mksnapshot_default args > out/Default/mksnapshot_args gn desc out/Default v8:run_mksnapshot_default args > out/Default/mksnapshot_args
fi fi
@ -795,7 +795,7 @@ step-mksnapshot-build: &step-mksnapshot-build
electron/script/strip-binaries.py --file $PWD/out/Default/v8_context_snapshot_generator electron/script/strip-binaries.py --file $PWD/out/Default/v8_context_snapshot_generator
fi fi
fi fi
if [ ! -s "src/out/Default/.electron_mksnapshot_zip_done" ] && [ "$SKIP_DIST_ZIP" != "1" ]; then if [ ! -s "out/Default/.electron_mksnapshot_zip_done" ] && [ "$SKIP_DIST_ZIP" != "1" ]; then
ninja -C out/Default electron:electron_mksnapshot_zip -j $NUMBER_OF_NINJA_PROCESSES ninja -C out/Default electron:electron_mksnapshot_zip -j $NUMBER_OF_NINJA_PROCESSES
(cd out/Default; zip mksnapshot.zip mksnapshot_args gen/v8/embedded.S) (cd out/Default; zip mksnapshot.zip mksnapshot_args gen/v8/embedded.S)
fi fi