build: build & release libcxx objects on darwin (#34586)
* build: build & release libcxx objects on darwin * Fix merge error Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
parent
3cd5223134
commit
2bbbc66eb8
3 changed files with 10 additions and 3 deletions
|
@ -794,8 +794,8 @@ step-maybe-generate-libcxx: &step-maybe-generate-libcxx
|
||||||
if [ "`uname`" == "Linux" ]; then
|
if [ "`uname`" == "Linux" ]; then
|
||||||
ninja -C out/Default electron:libcxx_headers_zip -j $NUMBER_OF_NINJA_PROCESSES
|
ninja -C out/Default electron:libcxx_headers_zip -j $NUMBER_OF_NINJA_PROCESSES
|
||||||
ninja -C out/Default electron:libcxxabi_headers_zip -j $NUMBER_OF_NINJA_PROCESSES
|
ninja -C out/Default electron:libcxxabi_headers_zip -j $NUMBER_OF_NINJA_PROCESSES
|
||||||
ninja -C out/Default electron:libcxx_objects_zip -j $NUMBER_OF_NINJA_PROCESSES
|
|
||||||
fi
|
fi
|
||||||
|
ninja -C out/Default electron:libcxx_objects_zip -j $NUMBER_OF_NINJA_PROCESSES
|
||||||
|
|
||||||
step-maybe-generate-breakpad-symbols: &step-maybe-generate-breakpad-symbols
|
step-maybe-generate-breakpad-symbols: &step-maybe-generate-breakpad-symbols
|
||||||
run:
|
run:
|
||||||
|
|
|
@ -146,6 +146,8 @@ function assetsForVersion (version, validatingRelease) {
|
||||||
`libcxx-objects-${version}-linux-arm64.zip`,
|
`libcxx-objects-${version}-linux-arm64.zip`,
|
||||||
`libcxx-objects-${version}-linux-armv7l.zip`,
|
`libcxx-objects-${version}-linux-armv7l.zip`,
|
||||||
`libcxx-objects-${version}-linux-x64.zip`,
|
`libcxx-objects-${version}-linux-x64.zip`,
|
||||||
|
`libcxx-objects-${version}-darwin-x64.zip`,
|
||||||
|
`libcxx-objects-${version}-darwin-arm64.zip`,
|
||||||
`ffmpeg-${version}-darwin-x64.zip`,
|
`ffmpeg-${version}-darwin-x64.zip`,
|
||||||
`ffmpeg-${version}-darwin-arm64.zip`,
|
`ffmpeg-${version}-darwin-arm64.zip`,
|
||||||
`ffmpeg-${version}-linux-arm64.zip`,
|
`ffmpeg-${version}-linux-arm64.zip`,
|
||||||
|
|
|
@ -94,7 +94,13 @@ def main():
|
||||||
|
|
||||||
dsym_snapshot_zip = os.path.join(OUT_DIR, DSYM_SNAPSHOT_NAME)
|
dsym_snapshot_zip = os.path.join(OUT_DIR, DSYM_SNAPSHOT_NAME)
|
||||||
shutil.copy2(os.path.join(OUT_DIR, 'dsym-snapshot.zip'), dsym_snapshot_zip)
|
shutil.copy2(os.path.join(OUT_DIR, 'dsym-snapshot.zip'), dsym_snapshot_zip)
|
||||||
upload_electron(release, dsym_snapshot_zip, args)
|
upload_electron(release, dsym_snapshot_zip, args)
|
||||||
|
|
||||||
|
libcxx_objects = get_zip_name('libcxx-objects', ELECTRON_VERSION)
|
||||||
|
libcxx_objects_zip = os.path.join(OUT_DIR, libcxx_objects)
|
||||||
|
shutil.copy2(os.path.join(OUT_DIR, 'libcxx_objects.zip'),
|
||||||
|
libcxx_objects_zip)
|
||||||
|
upload_electron(release, libcxx_objects_zip, args)
|
||||||
elif PLATFORM == 'win32':
|
elif PLATFORM == 'win32':
|
||||||
if get_target_arch() != 'ia32':
|
if get_target_arch() != 'ia32':
|
||||||
pdb_zip = os.path.join(OUT_DIR, PDB_NAME)
|
pdb_zip = os.path.join(OUT_DIR, PDB_NAME)
|
||||||
|
@ -105,7 +111,6 @@ def main():
|
||||||
shutil.copy2(os.path.join(OUT_DIR, 'debug.zip'), debug_zip)
|
shutil.copy2(os.path.join(OUT_DIR, 'debug.zip'), debug_zip)
|
||||||
upload_electron(release, debug_zip, args)
|
upload_electron(release, debug_zip, args)
|
||||||
|
|
||||||
# Upload libcxx_objects.zip for linux only
|
|
||||||
libcxx_objects = get_zip_name('libcxx-objects', ELECTRON_VERSION)
|
libcxx_objects = get_zip_name('libcxx-objects', ELECTRON_VERSION)
|
||||||
libcxx_objects_zip = os.path.join(OUT_DIR, libcxx_objects)
|
libcxx_objects_zip = os.path.join(OUT_DIR, libcxx_objects)
|
||||||
shutil.copy2(os.path.join(OUT_DIR, 'libcxx_objects.zip'),
|
shutil.copy2(os.path.join(OUT_DIR, 'libcxx_objects.zip'),
|
||||||
|
|
Loading…
Reference in a new issue