package.bat 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. set windows_files_path=..\..\..\Product\flyinsono\windows_files
  2. set windows_setup_path=..\..\..\Product\flyinsono\fiswinsetup
  3. set pc_full_client_win=..\..\..\Product\flyinsono\pc_full_client_win
  4. set windows_installer_path=..\..\..\Product\flyinsono\windows
  5. set vsigntool_path=C:\Users\IUS\AppData\Local\Programs\vsigntoolui\binaries
  6. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=mobile\flyinsono.apk /cd=android\flyinsono.apk
  7. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=mobile\flyinsono.aab /cd=android\flyinsono.aab
  8. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=mobile\flyinsono_addhoc.ipa /cd=ios\flyinsono_addhoc.ipa
  9. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=mobile\flyinsono_appstore.ipa /cd=ios\flyinsono_appstore.ipa
  10. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=web\flyinsono.zip /cd=web /unzip=true
  11. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=web\flyinsono.zip /cd=osx_files\App\flyinsono\flyinsono.zip
  12. PackTool /mode=copy /pn=flyinsono /rn=Flyinsono /rs=web\flyinsono.zip /cd=windows_files\App\flyinsono\flyinsono.zip
  13. PackTool /mode=copy /pn=flyinsono /rn=WingManagementModule /rs=ManagementReportDesignerApp.zip /cd=windows_files\App\flyinsono\ManagementReportDesignerApp.zip
  14. PackTool /mode=version /pn=flyinsono /rn=Flyinsono /rv=%1
  15. xcopy /y /c /k "..\..\..\Product\flyinsono\Versions.txt" "..\..\..\Product\flyinsono\windows_files\"
  16. REM This is some scripts to do code singature
  17. %vsigntool_path%/vsigntool --config C:\Users\IUS\AppData\Roaming\vsigntoolui/config.xml --cmd sign -i %windows_files_path%\fis.exe -m 3 -r FlyinsonoClient
  18. %vsigntool_path%/vsigntool --config C:\Users\IUS\AppData\Roaming\vsigntoolui/config.xml --cmd sign -i %windows_files_path%\fis.Upgrader.exe -m 3 -r FlyinsonoClient
  19. %vsigntool_path%/vsigntool --config C:\Users\IUS\AppData\Roaming\vsigntoolui/config.xml --cmd sign -i %windows_setup_path%\extra\loader.exe -m 3 -r FlyinsonoClient
  20. REM This is some scripts to pick for dedicated files to minus package size
  21. if not exist %pc_full_client_win% mkdir %pc_full_client_win%
  22. if not exist "%pc_full_client_win%\App" mkdir "%pc_full_client_win%\App"
  23. xcopy /y /h /s "%windows_files_path%\App\*" "%pc_full_client_win%\App"
  24. if not exist "%pc_full_client_win%\CefGlueBrowserProcess" mkdir "%pc_full_client_win%\CefGlueBrowserProcess"
  25. copy /y "%windows_files_path%\CefGlueBrowserProcess\Xilium.CefGlue.BrowserProcess.exe" "%pc_full_client_win%\CefGlueBrowserProcess"
  26. if not exist "%pc_full_client_win%\locales" mkdir "%pc_full_client_win%\locales"
  27. copy /y "%windows_files_path%\locales\en-US.pak" "%pc_full_client_win%\locales"
  28. copy /y "%windows_files_path%\locales\zh-CN.pak" "%pc_full_client_win%\locales"
  29. copy /y "%windows_files_path%\locales\zh-TW.pak" "%pc_full_client_win%\locales"
  30. copy /y "%windows_files_path%\locales\ru.pak" "%pc_full_client_win%\locales"
  31. if not exist "%pc_full_client_win%\SmartPublisher" mkdir "%pc_full_client_win%\SmartPublisher"
  32. xcopy /y /h /s "%windows_files_path%\SmartPublisher\*" "%pc_full_client_win%\SmartPublisher"
  33. if not exist "%pc_full_client_win%\swiftshader" mkdir "%pc_full_client_win%\swiftshader"
  34. xcopy /y /h /s "%windows_files_path%\swiftshader\*" "%pc_full_client_win%\swiftshader"
  35. copy /y "%windows_files_path%\cef.pak" "%pc_full_client_win%"
  36. copy /y "%windows_files_path%\FisPrintDrive.exe" "%pc_full_client_win%"
  37. copy /y "%windows_files_path%\cef_100_percent.pak" "%pc_full_client_win%"
  38. copy /y "%windows_files_path%\cef_200_percent.pak" "%pc_full_client_win%"
  39. copy /y "%windows_files_path%\cef_extensions.pak" "%pc_full_client_win%"
  40. copy /y "%windows_files_path%\chrome_elf.dll" "%pc_full_client_win%"
  41. copy /y "%windows_files_path%\concrt140.dll" "%pc_full_client_win%"
  42. copy /y "%windows_files_path%\cvextern.dll" "%pc_full_client_win%"
  43. copy /y "%windows_files_path%\d3dcompiler_47.dll" "%pc_full_client_win%"
  44. copy /y "%windows_files_path%\devtools_resources.pak" "%pc_full_client_win%"
  45. copy /y "%windows_files_path%\fis.exe" "%pc_full_client_win%"
  46. copy /y "%windows_files_path%\fis.Upgrader.exe" "%pc_full_client_win%"
  47. copy /y "%windows_files_path%\flyinsono.ico" "%pc_full_client_win%"
  48. copy /y "%windows_files_path%\icudtl.dat" "%pc_full_client_win%"
  49. copy /y "%windows_files_path%\libcef.dll" "%pc_full_client_win%"
  50. copy /y "%windows_files_path%\libEGL.dll" "%pc_full_client_win%"
  51. copy /y "%windows_files_path%\libGLESv2.dll" "%pc_full_client_win%"
  52. copy /y "%windows_files_path%\libHarfBuzzSharp.dll" "%pc_full_client_win%"
  53. copy /y "%windows_files_path%\libSkiaSharp.dll" "%pc_full_client_win%"
  54. copy /y "%windows_files_path%\msvcp140.dll" "%pc_full_client_win%"
  55. copy /y "%windows_files_path%\msvcp140_1.dll" "%pc_full_client_win%"
  56. copy /y "%windows_files_path%\msvcp140_2.dll" "%pc_full_client_win%"
  57. copy /y "%windows_files_path%\msvcp140_atomic_wait.dll" "%pc_full_client_win%"
  58. copy /y "%windows_files_path%\msvcp140_codecvt_ids.dll" "%pc_full_client_win%"
  59. copy /y "%windows_files_path%\snapshot_blob.bin" "%pc_full_client_win%"
  60. copy /y "%windows_files_path%\v8_context_snapshot.bin" "%pc_full_client_win%"
  61. copy /y "%windows_files_path%\vcruntime140.dll" "%pc_full_client_win%"
  62. copy /y "%windows_files_path%\vcruntime140_1.dll" "%pc_full_client_win%"
  63. copy /y "%windows_files_path%\resources.pak" "%pc_full_client_win%"
  64. copy /y "%windows_files_path%\Versions.txt" "%pc_full_client_win%"
  65. copy /y "%windows_setup_path%\extra\loader.exe" "%pc_full_client_win%"
  66. REM End to pick for dedicated files to minus package size
  67. PackTool /mode=inno /pn=flyinsono /pv=2.0.0.0 /ss=windows_files /od=windows /iss=fiswinsetup\flyinsono.iss
  68. %vsigntool_path%/vsigntool --config C:\Users\IUS\AppData\Roaming\vsigntoolui/config.xml --cmd sign -i %windows_installer_path%\flyinsono.exe -m 3 -r FlyinsonoClient
  69. PackTool /mode=repack /pn=flyinsono /ef=osx_files,windows_files