electron: actually upgrade

This commit is contained in:
psykose 2022-06-23 01:53:39 +00:00
parent 70ac5d06a9
commit b90523f45b
Signed by: psykose
SSH key fingerprint: SHA256:HwlGVJNLZqHoOvMtkshyGaXLkcdbEJahYMlepHFL+Uk

View file

@ -1,8 +1,8 @@
# Maintainer: psykose <alice@ayaya.dev> # Maintainer: psykose <alice@ayaya.dev>
pkgname=electron pkgname=electron
pkgver=19.0.6 pkgver=19.0.6
pkgrel=0 pkgrel=1
_gitrev=c0588770eac69e56c457063d29a5e4077b9a188a _gitrev=e9e2b6dfda755fc39bddde3de18a2da77688ac1a
_chromium=102.0.5005.115 _chromium=102.0.5005.115
_depot_tools=9b9f451addeb3ad230e9385d5e2c20cd1632c491 _depot_tools=9b9f451addeb3ad230e9385d5e2c20cd1632c491
pkgdesc="Electron" pkgdesc="Electron"
@ -145,11 +145,12 @@ _gn_flags() {
} }
prepare() { prepare() {
git clone --branch=${_chromium} --depth=1 \ default_prepare
git clone --branch=$_chromium --depth=1 \
https://chromium.googlesource.com/chromium/src.git https://chromium.googlesource.com/chromium/src.git
git clone https://github.com/electron/electron.git git clone https://github.com/electron/electron.git
( (
git clone --depth 1 -b main https://chromium.googlesource.com/chromium/tools/depot_tools.git git clone --depth 1 -b main https://chromium.googlesource.com/chromium/tools/depot_tools.git
cd depot_tools cd depot_tools
@ -176,7 +177,7 @@ prepare() {
--with_branch_heads \ --with_branch_heads \
--with_tags \ --with_tags \
--nohooks --nohooks
python3 src/build/landmines.py python3 src/build/landmines.py
python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE
python3 src/build/util/lastchange.py -m GPU_LISTS_VERSION \ python3 src/build/util/lastchange.py -m GPU_LISTS_VERSION \
@ -247,7 +248,7 @@ prepare() {
-delete -delete
done done
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/9JX1N2nf4PU/discussion # https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/9JX1N2nf4PU/discussion
touch chrome/test/data/webui/i18n_process_css_test.html touch chrome/test/data/webui/i18n_process_css_test.html
# Use the file at run time instead of effectively compiling it in # Use the file at run time instead of effectively compiling it in
@ -266,57 +267,57 @@ prepare() {
# allow system dependencies in "official builds" # allow system dependencies in "official builds"
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \ sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
tools/generate_shim_headers/generate_shim_headers.py tools/generate_shim_headers/generate_shim_headers.py
_gn_args=$(_gn_flags \
import\(\"//electron/build/args/release.gn\"\) \
custom_toolchain=\"//build/toolchain/linux/unbundle:default\" \
host_toolchain=\"//build/toolchain/linux/unbundle:default\" \
blink_symbol_level=0 \
build_with_tflite_lib=false \
chrome_pgo_phase=0 \
clang_use_chrome_plugins=false \
disable_fieldtrial_testing_config=true \
enable_hangout_services_extension=true \
enable_nacl=false \
enable_precompiled_headers=false \
enable_vr=false \
fatal_linker_warnings=false \
ffmpeg_branding=\"Chrome\" \
icu_use_data_file=true \
is_cfi=false \
is_clang=true \
is_component_build=false \
is_debug=false \
is_official_build=true \
link_pulseaudio=true \
proprietary_codecs=true \
rtc_use_pipewire=true \
symbol_level=0 \
treat_warnings_as_errors=false \
use_allocator=\"none\" \
use_allocator_shim=false \
use_cfi_icall=false \
use_cups=true \
use_custom_libcxx=false \
use_gnome_keyring=false \
use_gold=false \
use_lld=true \
use_pulseaudio=true \
use_sysroot=false \
use_system_freetype=true \
use_system_harfbuzz=true \
use_system_lcms2=true \
use_system_libdrm=true \
use_system_libjpeg=true \
use_system_libpng=true \
use_system_zlib=true \
use_thin_lto=false \
use_vaapi=true \
)
gn gen out/Release --args="$_gn_args"
) )
_gn_args=$(_gn_flags \
import\(\"//electron/build/args/release.gn\"\) \
custom_toolchain=\"//build/toolchain/linux/unbundle:default\" \
host_toolchain=\"//build/toolchain/linux/unbundle:default\" \
blink_symbol_level=0 \
build_with_tflite_lib=false \
chrome_pgo_phase=0 \
clang_use_chrome_plugins=false \
disable_fieldtrial_testing_config=true \
enable_hangout_services_extension=true \
enable_nacl=false \
enable_precompiled_headers=false \
enable_vr=false \
fatal_linker_warnings=false \
ffmpeg_branding=\"Chrome\" \
icu_use_data_file=true \
is_cfi=false \
is_clang=true \
is_component_build=false \
is_debug=false \
is_official_build=true \
link_pulseaudio=true \
proprietary_codecs=true \
rtc_use_pipewire=true \
symbol_level=0 \
treat_warnings_as_errors=false \
use_allocator=\"none\" \
use_allocator_shim=false \
use_cfi_icall=false \
use_cups=true \
use_custom_libcxx=false \
use_gnome_keyring=false \
use_gold=false \
use_lld=true \
use_pulseaudio=true \
use_sysroot=false \
use_system_freetype=true \
use_system_harfbuzz=true \
use_system_lcms2=true \
use_system_libdrm=true \
use_system_libjpeg=true \
use_system_libpng=true \
use_system_zlib=true \
use_thin_lto=false \
use_vaapi=true \
)
gn gen out/Release --args="$_gn_args"
} }
build() { build() {