Skip to content

Commit

Permalink
build: Fix Sign & Package Script
Browse files Browse the repository at this point in the history
Signed-off-by: Qian Qian "Cubik"‎ <[email protected]>
  • Loading branch information
Cubik65536 committed Jan 21, 2025
1 parent 59ad3f6 commit d281036
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ while getopts 'd' OPTION; do
esac
done

# For packaging
_chromium_version=$(cat "$_root_dir"/ungoogled-chromium/chromium_version.txt)
_ungoogled_revision=$(cat "$_root_dir"/ungoogled-chromium/revision.txt)
_package_revision=$(cat "$_root_dir"/revision.txt)

# Add local clang and build tools to PATH
# export PATH="$PATH:$_src_dir/third_party/llvm-build/Release+Asserts/bin"

Expand Down Expand Up @@ -90,6 +85,9 @@ fi
/usr/bin/arch -$_arch $_python_path/python3 ./tools/rust/build_bindgen.py --rust-target $_rust_target

/usr/bin/arch -$_arch ./out/Default/gn gen out/Default --fail-on-unused-args

ln -s "$_src_dir/third_party" "$_src_dir/../third_party"

/usr/bin/arch -$_arch $_ninja_path/ninja -C out/Default chrome chromedriver

./sign_and_package_app.sh
/bin/zsh "$_root_dir/sign_and_package_app.sh"
7 changes: 7 additions & 0 deletions sign_and_package_app.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
_root_dir=$(dirname $(greadlink -f $0))

# For packaging
_chromium_version=$(cat "$_root_dir"/ungoogled-chromium/chromium_version.txt)
_ungoogled_revision=$(cat "$_root_dir"/ungoogled-chromium/revision.txt)
_package_revision=$(cat "$_root_dir"/revision.txt)

# Fix issue where macOS requests permission for incoming network connections
# See https://github.com/ungoogled-software/ungoogled-chromium-macos/issues/17
xattr -cs out/Default/Chromium.app
Expand Down

0 comments on commit d281036

Please sign in to comment.