Move fetch_xulrunner and fetch_mar_tools into app/scripts

This commit is contained in:
Dan Stillman 2023-04-29 05:49:55 -04:00
parent 9a5275b92a
commit 3905f9d5b3
2 changed files with 9 additions and 7 deletions

View file

@ -2,9 +2,9 @@
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="$SCRIPT_DIR"
APP_ROOT_DIR="$(dirname "$SCRIPT_DIR")"
cd "$ROOT_DIR"
cd "$APP_ROOT_DIR"
mkdir -p "xulrunner/bin"
if [ "`uname`" = "Darwin" ]; then

View file

@ -19,8 +19,10 @@ set -euo pipefail
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CALLDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "$CALLDIR/config.sh"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_ROOT_DIR="$(dirname "$SCRIPT_DIR")"
. "$APP_ROOT_DIR/config.sh"
cd "$APP_ROOT_DIR"
function usage {
cat >&2 <<DONE
@ -96,7 +98,7 @@ function modify_omni {
cd omni
# omni.ja is an "optimized" ZIP file, so use a script from Mozilla to avoid a warning from unzip
# here and to make it work after rezipping below
python3 "$CALLDIR/scripts/optimizejars.py" --deoptimize ./ ./ ./
python3 "$APP_ROOT_DIR/scripts/optimizejars.py" --deoptimize ./ ./ ./
rm -f omni.ja.log
unzip omni.ja
rm omni.ja
@ -210,7 +212,7 @@ function modify_omni {
# perl -pi -e 's/update for &brandShortName; as soon as possible/update as soon as possible/' chrome/en-US/locale/en-US/mozapps/update/updates.dtd
#
# Set available locales
cp "$CALLDIR/assets/multilocale.txt" res/multilocale.txt
cp "$APP_ROOT_DIR/assets/multilocale.txt" res/multilocale.txt
#
# # Force Lucida Grande on non-Retina displays, since San Francisco is used otherwise starting in
# # Catalina, and it looks terrible
@ -269,7 +271,7 @@ function modify_omni {
zip -qr9XD omni.ja *
mv omni.ja ..
cd ..
python3 "$CALLDIR/scripts/optimizejars.py" --optimize ./ ./ ./
python3 "$APP_ROOT_DIR/scripts/optimizejars.py" --optimize ./ ./ ./
rm -rf omni
# Unzip browser/omni.ja and leave unzipped