Create make-firefox.sh

This commit is contained in:
Kenneth Hendricks 2024-10-22 18:18:17 -04:00 committed by GitHub
parent 30aa38c065
commit 3540a372d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
tools/make-firefox.sh Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
# Define build destination
DES=dist/build/FMHY-SafeGuard.firefox
rm -rf $DES
mkdir -p $DES
# Copy files specific to Firefox extension
cp -R platform/firefox/* $DES/
# Create a versioned XPI package
pushd dist/build
zip -r FMHY-SafeGuard_"$1".firefox.xpi FMHY-SafeGuard.firefox
popd