Updated packaging scripts to include translation files.

This commit is contained in:
WrinklyNinja
2013-09-21 08:36:20 +01:00
parent 926eab6f2f
commit 7a6960a832
2 changed files with 30 additions and 17 deletions
+14 -1
View File
@@ -8,6 +8,10 @@
# build/BOSS.exe
# resources/graphvis
# resources/svgweb
# resources/l10n/es/LC_MESSAGES/boss.mo
# resources/l10n/es/LC_MESSAGES/wxstd.mo
# resources/l10n/ru/LC_MESSAGES/boss.mo
# resources/l10n/ru/LC_MESSAGES/wxstd.mo
# resources/polyfill.js
# resources/script.js
# resources/style.css
@@ -32,12 +36,21 @@ if (len(sys.argv) > 1):
if not os.path.exists(temp_path):
os.makedirs(temp_path)
# Now copy everything into the temporary folder.
shutil.copy( os.path.join('..', 'build', 'BOSS.exe'), temp_path )
shutil.copytree( os.path.join('..', 'resources', 'graphvis'), os.path.join(temp_path, 'resources', 'graphvis') )
shutil.copytree( os.path.join('..', 'resources', 'svgweb'), os.path.join(temp_path, 'resources', 'svgweb') )
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES'))
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', 'ru', 'LC_MESSAGES'))
shutil.copy( os.path.join('..', 'resources', 'l10n', 'es', 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES') )
shutil.copy( os.path.join('..', 'resources', 'l10n', 'es', 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', 'es', 'LC_MESSAGES') )
shutil.copy( os.path.join('..', 'resources', 'l10n', 'ru', 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', 'ru', 'LC_MESSAGES') )
shutil.copy( os.path.join('..', 'resources', 'l10n', 'ru', 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', 'ru', 'LC_MESSAGES') )
shutil.copy( os.path.join('..', 'resources', 'polyfill.js'), os.path.join(temp_path, 'resources') )
shutil.copy( os.path.join('..', 'resources', 'script.js'), os.path.join(temp_path, 'resources') )
shutil.copy( os.path.join('..', 'resources', 'style.css'), os.path.join(temp_path, 'resources') )
+16 -16
View File
@@ -291,15 +291,15 @@ FunctionEnd
;Now install language files.
SetOutPath "$INSTDIR\resources\l10n\ru\LC_MESSAGES"
;File "..\resources\l10n\ru\LC_MESSAGES\messages.mo"
;File "..\resources\l10n\ru\LC_MESSAGES\wxstd.mo"
File "..\resources\l10n\ru\LC_MESSAGES\boss.mo"
File "..\resources\l10n\ru\LC_MESSAGES\wxstd.mo"
SetOutPath "$INSTDIR\resources\l10n\es\LC_MESSAGES"
;File "..\resources\l10n\es\LC_MESSAGES\wxstd.mo"
;File "..\resources\l10n\es\LC_MESSAGES\messages.mo"
SetOutPath "$INSTDIR\resources\l10n\de\LC_MESSAGES"
File "..\resources\l10n\es\LC_MESSAGES\wxstd.mo"
File "..\resources\l10n\es\LC_MESSAGES\boss.mo"
;SetOutPath "$INSTDIR\resources\l10n\de\LC_MESSAGES"
;File "..\resources\l10n\de\LC_MESSAGES\wxstd.mo"
SetOutPath "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
;File "..\resources\l10n\zh\LC_MESSAGES\messages.mo"
;SetOutPath "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
;File "..\resources\l10n\zh\LC_MESSAGES\boss.mo"
;File "..\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
;Install settings file.
@@ -393,21 +393,21 @@ FunctionEnd
RMDir /r "$INSTDIR\resources\svgweb"
;Remove language files.
Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\messages.mo"
Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\boss.mo"
Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\wxstd.mo"
Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\messages.mo"
Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\boss.mo"
Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\wxstd.mo"
Delete "$INSTDIR\resources\l10n\de\LC_MESSAGES\wxstd.mo"
Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\messages.mo"
Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
;Delete "$INSTDIR\resources\l10n\de\LC_MESSAGES\wxstd.mo"
;Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\boss.mo"
;Delete "$INSTDIR\resources\l10n\zh\LC_MESSAGES\wxstd.mo"
RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES"
RMDir "$INSTDIR\resources\l10n\ru"
RMDir "$INSTDIR\resources\l10n\es\LC_MESSAGES"
RMDir "$INSTDIR\resources\l10n\es"
RMDir "$INSTDIR\resources\l10n\de\LC_MESSAGES"
RMDir "$INSTDIR\resources\l10n\de"
RMDir "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
RMDir "$INSTDIR\resources\l10n\zh"
;RMDir "$INSTDIR\resources\l10n\de\LC_MESSAGES"
;RMDir "$INSTDIR\resources\l10n\de"
;RMDir "$INSTDIR\resources\l10n\zh\LC_MESSAGES"
;RMDir "$INSTDIR\resources\l10n\zh"
RMDir "$INSTDIR\resources\l10n"
RMDir "$INSTDIR\resources"