Skip to content

Commit

Permalink
Overwrite icon
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingdoom committed Feb 14, 2024
1 parent 77b0a6f commit d18c612
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/scripts/build/linux-aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cd mozilla-unified
cp -r ../src/changed/* .
cp ../src/mozconfig.linux-aarch64 mozconfig
patch -N -p1 < ../src/mozilla_dirsFromLibreWolf.patch
patch -N -p1 < ../src/policies-file-command-line-argument.patch

./mach configure
./mach build
Expand Down
5 changes: 3 additions & 2 deletions src/scripts/build/mac-arm
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ cp -r ../src/changed/* .
cp ../src/mozconfig.mac-arm mozconfig
patch -N -p1 < ../src/mozilla_dirsFromLibreWolf.patch
patch -N -p1 < ../src/mac/close-on-window-closed.patch
patch -N -p1 < ../src/policies-file-command-line-argument.patch

./mach configure
./mach build
./mach package

cd ..

rm -r NEUTRON_INTERNAL_APP_NAME-darwin-aarch64
rm -rf NEUTRON_INTERNAL_APP_NAME-darwin-aarch64
mkdir NEUTRON_INTERNAL_APP_NAME-darwin-aarch64

cp -r mozilla-unified/obj-aarch64-apple-darwin/dist/NEUTRON_INTERNAL_APP_NAME/*.app/* NEUTRON_INTERNAL_APP_NAME-darwin-aarch64/
Expand All @@ -34,6 +33,8 @@ cp src/open-in-default-browser/open-in-default-browser-mac NEUTRON_INTERNAL_APP_
cp src/launch-app.mac-arm NEUTRON_INTERNAL_APP_NAME-darwin-aarch64/Contents/Resources/launch-app
cp src/launch-app.mac-arm NEUTRON_INTERNAL_APP_NAME-darwin-aarch64/Contents/MacOS/launch-app

cp src/changed/browser/branding/NEUTRON_INTERNAL_APP_NAME/firefox.icns NEUTRON_INTERNAL_APP_NAME-darwin-aarch64/Contents/Resources/firefox.icns

if ((NEUTRON_OPEN_IN_DEFAULT_BROWSER)); then
mkdir NEUTRON_INTERNAL_APP_NAME-darwin-aarch64/Contents/Resources/distribution/extensions
cp src/open-in-default-browser/open_in_default_browser-1.0.zip NEUTRON_INTERNAL_APP_NAME-darwin-aarch64/Contents/Resources/distribution/extensions/open-in-default-browser.xpi
Expand Down
5 changes: 3 additions & 2 deletions src/scripts/build/mac-intel
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ cp -r ../src/changed/* .
cp ../src/mozconfig.mac-intel mozconfig
patch -N -p1 < ../src/mozilla_dirsFromLibreWolf.patch
patch -N -p1 < ../src/mac/close-on-window-closed.patch
patch -N -p1 < ../src/policies-file-command-line-argument.patch

./mach configure
./mach build
./mach package

cd ..

rm -r NEUTRON_INTERNAL_APP_NAME-darwin-x86_64
rm -rf NEUTRON_INTERNAL_APP_NAME-darwin-x86_64
mkdir NEUTRON_INTERNAL_APP_NAME-darwin-x86_64

cp -r mozilla-unified/obj-x86_64-apple-darwin/dist/NEUTRON_INTERNAL_APP_NAME/*.app/* NEUTRON_INTERNAL_APP_NAME-darwin-x86_64/
Expand All @@ -34,6 +33,8 @@ cp src/open-in-default-browser/open-in-default-browser-mac NEUTRON_INTERNAL_APP_
cp src/launch-app.mac-intel NEUTRON_INTERNAL_APP_NAME-darwin-x86_64/Contents/Resources/launch-app
cp src/launch-app.mac-intel NEUTRON_INTERNAL_APP_NAME-darwin-x86_64/Contents/MacOS/launch-app

cp src/changed/browser/branding/NEUTRON_INTERNAL_APP_NAME/firefox.icns NEUTRON_INTERNAL_APP_NAME-darwin-x86_64/Contents/Resources/firefox.icns

if ((NEUTRON_OPEN_IN_DEFAULT_BROWSER)); then
mkdir NEUTRON_INTERNAL_APP_NAME-darwin-x86_64/Contents/Resources/distribution/extensions
cp src/open-in-default-browser/open_in_default_browser-1.0.zip NEUTRON_INTERNAL_APP_NAME-darwin-x86_64/Contents/Resources/distribution/extensions/open-in-default-browser.xpi
Expand Down
1 change: 0 additions & 1 deletion src/scripts/build/windows
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ cd mozilla-unified
cp -r ../src/changed/* .
cp ../src/mozconfig.windows mozconfig
patch -N -p1 < ../src/mozilla_dirsFromLibreWolf.patch
patch -N -p1 < ../src/policies-file-command-line-argument.patch

# Add cross compile target
rustup target add x86_64-pc-windows-msvc
Expand Down

0 comments on commit d18c612

Please sign in to comment.