mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
16 lines
313 B
Bash
16 lines
313 B
Bash
#!/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
|