diff options
author | BeatLink <beatlink@protonmail.com> | 2019-07-03 20:09:12 -0500 |
---|---|---|
committer | BeatLink <beatlink@protonmail.com> | 2019-07-03 20:09:12 -0500 |
commit | b9afa459ed69aaf4472f7568f6303b68c518f40d (patch) | |
tree | 8f6dd19197eb1539fd330c597806c0431352d829 /archive | |
parent | Remove old files (diff) | |
download | librewolf-linux-b9afa459ed69aaf4472f7568f6303b68c518f40d.tar.gz librewolf-linux-b9afa459ed69aaf4472f7568f6303b68c518f40d.tar.bz2 librewolf-linux-b9afa459ed69aaf4472f7568f6303b68c518f40d.zip |
Move mac script to specific folder
Diffstat (limited to 'archive')
-rwxr-xr-x | archive/packaging/package_macos.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/archive/packaging/package_macos.sh b/archive/packaging/package_macos.sh deleted file mode 100755 index e4b2be9..0000000 --- a/archive/packaging/package_macos.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Usage: ./package_macos.sh /path/to/Firefox.dmg [--install] -# If `--install` is passed, will copy Librefox.app into /Applications. -# Otherwise, Librefox.dmg will be created next to Firefox.dmg - -repo=$(git rev-parse --show-toplevel) - -vol=$(hdiutil attach "$1" -shadow | tail -n 1 | cut -f 3) -app="$(basename "$vol").app" - -cp "$repo/packaging/mac/background.png" "$vol/.background/" - -cd "$vol" -codesign --remove-signature "$app" - -cd "$app/Contents" -rm -rf _CodeSignature Library/LaunchServices/org.mozilla.updater - -cd MacOS -rm -rf plugin-container.app/Contents/_CodeSignature \ - crashreporter.app \ - updater.app - -cd ../Resources -rm -rf update-settings.ini updater.ini -cp -R "$repo/librefox/." . - -cd browser/features -rm -rf aushelper@mozilla.org.xpi \ - firefox@getpocket.com.xpi \ - onboarding@mozilla.org.xpi - -if [ "$2" == "--install" ]; then - cd "$vol" - cp -R "$app" /Applications/Librefox.app -fi - -cd "$repo" -hdiutil detach "$vol" - -if [ "$2" != "--install" ]; then - out_dir=$(dirname "$1") - rm -f "$out_dir/Librefox.dmg" - hdiutil convert -format UDZO -o "$out_dir/Librefox.dmg" "$1" -shadow -fi |