From 3a262083ea2b62a8890ad4d36b3a273606dbf144 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Mon, 6 May 2013 14:41:27 +0200 Subject: [PATCH] add german langugae pack from firefox --- CLIENT_DATA/local-settings.js | 2 ++ CLIENT_DATA/mozilla.cfg | 2 ++ CLIENT_DATA/setup64.ins | 4 +++ builder-product.cfg | 6 ++++ builder-targets-cb.sh | 32 +++++++++++++++++++++ langpack-de@firefox.mozilla.org.xpi.sha1sum | 1 + 6 files changed, 47 insertions(+) create mode 100644 CLIENT_DATA/local-settings.js create mode 100644 CLIENT_DATA/mozilla.cfg create mode 100644 langpack-de@firefox.mozilla.org.xpi.sha1sum diff --git a/CLIENT_DATA/local-settings.js b/CLIENT_DATA/local-settings.js new file mode 100644 index 0000000..4d7abd3 --- /dev/null +++ b/CLIENT_DATA/local-settings.js @@ -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"); diff --git a/CLIENT_DATA/mozilla.cfg b/CLIENT_DATA/mozilla.cfg new file mode 100644 index 0000000..60ae5ce --- /dev/null +++ b/CLIENT_DATA/mozilla.cfg @@ -0,0 +1,2 @@ +lockPref("app.update.auto", false); +lockPref("app.update.enabled", false); diff --git a/CLIENT_DATA/setup64.ins b/CLIENT_DATA/setup64.ins index e272227..383bd0c 100644 --- a/CLIENT_DATA/setup64.ins +++ b/CLIENT_DATA/setup64.ins @@ -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: ; diff --git a/builder-product.cfg b/builder-product.cfg index 2223b61..4ed2e9c 100644 --- a/builder-product.cfg +++ b/builder-product.cfg @@ -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 diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh index 9a3d4a8..92aa806 100644 --- a/builder-targets-cb.sh +++ b/builder-targets-cb.sh @@ -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 +} diff --git a/langpack-de@firefox.mozilla.org.xpi.sha1sum b/langpack-de@firefox.mozilla.org.xpi.sha1sum new file mode 100644 index 0000000..e699e29 --- /dev/null +++ b/langpack-de@firefox.mozilla.org.xpi.sha1sum @@ -0,0 +1 @@ +4f87eea23f51d3f7546506a098e5760cbf5108d1 /home/mario/.opsi-dist-cache/waterfoxproject.waterfox-18.0.1/X86_64/langpack-de@firefox.mozilla.org.xpi