split the installer stuff into a seperate shell script
This commit is contained in:
parent
605e073162
commit
3cf15ede14
2 changed files with 40 additions and 39 deletions
68
build.sh
68
build.sh
|
|
@ -151,31 +151,14 @@ package() {
|
||||||
|
|
||||||
installer_win() {
|
installer_win() {
|
||||||
cd firefox-$pkgver
|
cd firefox-$pkgver
|
||||||
|
|
||||||
# apply the LibreWolf settings
|
# there is just too much garbage in this installer function to
|
||||||
cp -rv ../settings/* obj-x86_64-pc-mingw32/dist/librewolf
|
# have it all here..
|
||||||
|
. installer-win.sh
|
||||||
# recreate the zip file..
|
|
||||||
cd obj-x86_64-pc-mingw32/dist
|
|
||||||
rm -f librewolf-$pkgver.en-US.win64.txt librewolf-$pkgver.en-US.win64.zip
|
|
||||||
zip -r9 librewolf-$pkgver.en-US.win64.zip librewolf
|
|
||||||
/c/mozilla-source/Git/usr/bin/sha256sum.exe librewolf-$pkgver.en-US.win64.zip > librewolf-$pkgver.en-US.win64.zip.sha256sum
|
|
||||||
rm -f ../../../librewolf-$pkgver.en-US.win64.zip*
|
|
||||||
cp librewolf-$pkgver.en-US.win64.zip* ../../..
|
|
||||||
cd ../..
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
installer_macos() {
|
|
||||||
cd firefox-$pkgver
|
|
||||||
|
|
||||||
# TODO: we want to apply the librewolf settings and make the .dmg file here.
|
|
||||||
echo 'build.sh: installer_macos() Not implemented yet.'
|
|
||||||
cd ..
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# windows: change $PATH to find all the build tools in .mozbuild
|
# windows: change $PATH to find all the build tools in .mozbuild
|
||||||
# this might do the trick on macos aswell?
|
# this might do the trick on macos aswell?
|
||||||
|
|
@ -188,32 +171,39 @@ fi
|
||||||
|
|
||||||
# process commandline arguments and do something
|
# process commandline arguments and do something
|
||||||
done_something=0
|
done_something=0
|
||||||
if [[ "$*" == *fetch* ]]; then
|
if [[ "$*" == *all* ]]; then
|
||||||
fetch
|
fetch
|
||||||
done_something=1
|
|
||||||
fi
|
|
||||||
if [[ "$*" == *prepare* ]]; then
|
|
||||||
prepare
|
prepare
|
||||||
done_something=1
|
|
||||||
fi
|
|
||||||
if [[ "$*" == *build* ]]; then
|
|
||||||
build
|
build
|
||||||
done_something=1
|
|
||||||
fi
|
|
||||||
if [[ "$*" == *package* ]]; then
|
|
||||||
package
|
package
|
||||||
done_something=1
|
|
||||||
fi
|
|
||||||
if [[ "$*" == *installer_win* ]]; then
|
|
||||||
installer_win
|
installer_win
|
||||||
done_something=1
|
done_something=1
|
||||||
fi
|
else
|
||||||
if [[ "$*" == *installer_macos* ]]; then
|
if [[ "$*" == *fetch* ]]; then
|
||||||
installer_macos
|
fetch
|
||||||
done_something=1
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *prepare* ]]; then
|
||||||
|
prepare
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *build* ]]; then
|
||||||
|
build
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *package* ]]; then
|
||||||
|
package
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *installer_win* ]]; then
|
||||||
|
installer_win
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if (( done_something == 0 )); then
|
if (( done_something == 0 )); then
|
||||||
echo "Usage: $0 fetch | prepare | build | package | installer_win | installer_mac"
|
echo "Usage: $0 fetch | prepare | build | package | installer_win"
|
||||||
|
echo " use the parameter 'all' to just do everything."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
11
installer-win.sh
Normal file
11
installer-win.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# apply the LibreWolf settings
|
||||||
|
cp -rv ../settings/* obj-x86_64-pc-mingw32/dist/librewolf
|
||||||
|
|
||||||
|
# recreate the zip file..
|
||||||
|
cd obj-x86_64-pc-mingw32/dist
|
||||||
|
rm -f librewolf-$pkgver.en-US.win64.txt librewolf-$pkgver.en-US.win64.zip
|
||||||
|
zip -r9 librewolf-$pkgver.en-US.win64.zip librewolf
|
||||||
|
/c/mozilla-source/Git/usr/bin/sha256sum.exe librewolf-$pkgver.en-US.win64.zip > librewolf-$pkgver.en-US.win64.zip.sha256sum
|
||||||
|
rm -f ../../../librewolf-$pkgver.en-US.win64.zip*
|
||||||
|
cp librewolf-$pkgver.en-US.win64.zip* ../../..
|
||||||
|
cd ../..
|
||||||
Loading…
Add table
Reference in a new issue