add german langugae pack from firefox

This commit is contained in:
Mario Fetka 2013-05-06 14:41:27 +02:00
parent 40a20f426b
commit 3a262083ea
6 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,2 @@
pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13
pref("general.config.filename", "mozilla.cfg");

2
CLIENT_DATA/mozilla.cfg Normal file
View File

@ -0,0 +1,2 @@
lockPref("app.update.auto", false);
lockPref("app.update.enabled", false);

View File

@ -88,6 +88,10 @@ msiexec /i "$RealInstallMsi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb ALL
[Files_install]
; copy the ini file to the InstallDir
copy "$IniCfgFile$" "$InstallDir$"
copy "%ScriptPath%\*.cfg" "$InstallDir$"
copy "%ScriptPath%\local-settings.js" "$InstallDir$\defaults\pref"
copy -s "%ScriptPath%\X86\Addons\bundles\*.*" "$InstallDir$\distribution\bundles"
; copy -s "%ScriptPath%\X86\Addons\extensions\*.*" "$InstallDir$\extensions"
; Example of recursively copying some files into the installation directory:
;

View File

@ -23,6 +23,12 @@ DL_SOURCE[1]="http://sourceforge.net/projects/waterfoxproj/files/Waterfox%20${VE
DL_ARCH[1]="X86_64"
DL_WINST_NAME[1]=InstallExe
DL_FILE[2]="langpack-de@firefox.mozilla.org.xpi"
DL_SOURCE[2]="https://addons.mozilla.org/firefox/downloads/file/187702/deutsch_de_language_pack-18.0-fx.xpi"
DL_ARCH[2]="X86_64"
DL_EXTRACT_TO[2]="Addons/bundles"
DL_WINST_NAME[2]=GermanLangugaPackXpi
# File array index for the image showing while installing the program
ICON_DL_INDEX=0

View File

@ -23,3 +23,35 @@ function cleanup() {
echo "Cleanup"
builder_cleanup
}
function create() {
echo "Create"
builder_create
mkdir -p $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles
# mv $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles/*.xpi $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles
pushd $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles
for file in `ls *.xpi`
do
dirname=`echo $file|sed 's/\.xpi$//g'`
mkdir $dirname
7z x -o$INST_DIR/CLIENT_DATA/X86_64/Addons/bundles/$dirname $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles/$file
done
popd
rm $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles/*.xpi
# mkdir -p $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions
# mv $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions/*.xpi $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions
# pushd $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions
# for file in `ls *.xpi`
# do
# dirname=`echo $file|sed 's/\.xpi$//g'`
# mkdir $dirname
# 7z x -o$INST_DIR/CLIENT_DATA/X86_64/Addons/extensions/$dirname $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions/$file
# done
# popd
# rm $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions/*.xpi
}

View File

@ -0,0 +1 @@
4f87eea23f51d3f7546506a098e5760cbf5108d1 /home/mario/.opsi-dist-cache/waterfoxproject.waterfox-18.0.1/X86_64/langpack-de@firefox.mozilla.org.xpi