Updated with experimental builds for fedora
This commit is contained in:
parent
d628b68638
commit
8d7d859730
2 changed files with 47 additions and 25 deletions
|
|
@ -1,38 +1,53 @@
|
||||||
#!/usr/bin/bash
|
exe=
|
||||||
|
objdir=obj-x86_64-pc-linux-gnu/dist/firefox
|
||||||
|
ospkg=rpm
|
||||||
|
|
||||||
# sanity checks
|
# sanity checks
|
||||||
if [ ! -d obj-x86_64-pc-linux-gnu/dist/firefox ]; then
|
if [ ! -d $objdir ]; then
|
||||||
echo "installer_rpm.sh: directory obj-x86_64-pc-linux-gnu/dist/firefox not found."
|
echo "artifacts_win.sh: directory $objdir not found. did you run './build.sh build'?"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ../firefox ../librewolf
|
rm -rf ../firefox ../librewolf
|
||||||
cp -r obj-x86_64-pc-linux-gnu/dist/firefox ..
|
cp -r $objdir ..
|
||||||
|
|
||||||
|
|
||||||
pushd ..
|
pushd ..
|
||||||
mv firefox librewolf
|
|
||||||
|
|
||||||
|
mv firefox librewolf
|
||||||
# apply the LibreWolf settings
|
# apply the LibreWolf settings
|
||||||
cp -rv settings/* librewolf
|
cp -rv settings/* librewolf
|
||||||
# rename the executable manually
|
# rename the executable manually
|
||||||
cd librewolf ; mv -v firefox librewolf ; cd ..
|
pushd librewolf ; mv -v firefox$exe librewolf$exe ; popd
|
||||||
|
|
||||||
# recreate the zip file..
|
|
||||||
|
|
||||||
# clean garbage files
|
# clean garbage files
|
||||||
cd librewolf ; rm -rf maintenanceservice* pingsender* firefox.*.xml precomplete removed-files ; cd ..
|
cd librewolf ; rm -rf maintenanceservice* pingsender* firefox.*.xml precomplete removed-files ; cd ..
|
||||||
|
# copy the windows icon
|
||||||
|
cp -v common/source_files/browser/branding/librewolf/firefox.ico librewolf/librewolf.ico
|
||||||
|
|
||||||
# copy the files to register LibreWolf as local app.
|
# create the final zip artifact
|
||||||
cp -v branding_files/register-librewolf branding_files/start-librewolf* librewolf
|
rm -f librewolf-$pkgver.en-US.$ospkg.zip
|
||||||
|
zip -qr9 librewolf-$pkgver.en-US.$ospkg.zip librewolf
|
||||||
# be sure to remove the previous zip file..
|
|
||||||
rm -f librewolf-$pkgver.en-US.rpm.zip*
|
|
||||||
|
|
||||||
zip -r9 librewolf-$pkgver.en-US.rpm.zip librewolf
|
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
|
||||||
sha256sum librewolf-$pkgver.en-US.rpm.zip > librewolf-$pkgver.en-US.rpm.zip.sha256sum
|
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
|
# now to try to make the installer
|
||||||
|
# (create a .deb here)
|
||||||
|
|
||||||
|
# patch to experimental config
|
||||||
|
if [ ! -z $experimental ]; then
|
||||||
|
pushd librewolf
|
||||||
|
echo "Applying experimental patches..."
|
||||||
|
patch -p1 -i ../patches/librewolf-config.patch
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
patch -p1 -i ../patches/librewolf-policies.patch
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
popd
|
||||||
|
|
||||||
|
# create the final zip artifact
|
||||||
|
rm -f librewolf-$pkgver.en-US.$ospkg-experimental.zip
|
||||||
|
zip -qr9 librewolf-$pkgver.en-US.$ospkg-experimental.zip librewolf
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
|
# now to try to make the installer
|
||||||
|
# (create a .deb here)
|
||||||
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
7
build.sh
7
build.sh
|
|
@ -480,10 +480,16 @@ else
|
||||||
done_something=1
|
done_something=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [[ "$*" == *artifacts_rpm_exp* ]]; then
|
||||||
|
experimental=experimental
|
||||||
|
artifacts_rpm
|
||||||
|
done_something=1
|
||||||
|
else
|
||||||
if [[ "$*" == *artifacts_rpm* ]]; then
|
if [[ "$*" == *artifacts_rpm* ]]; then
|
||||||
artifacts_rpm
|
artifacts_rpm
|
||||||
done_something=1
|
done_something=1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# by default, give help..
|
# by default, give help..
|
||||||
|
|
@ -506,6 +512,7 @@ Linux related functions:
|
||||||
artifacts_deb - apply .cfg, create a dist zip file (for debian10).
|
artifacts_deb - apply .cfg, create a dist zip file (for debian10).
|
||||||
artifacts_deb_exp - include experimental build
|
artifacts_deb_exp - include experimental build
|
||||||
artifacts_rpm - apply .cfg, create a dist zip file (for fedora33).
|
artifacts_rpm - apply .cfg, create a dist zip file (for fedora33).
|
||||||
|
artifacts_rpm_exp - include experimental build
|
||||||
|
|
||||||
Generic utility functionality:
|
Generic utility functionality:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue