package.bat 5.4 KB

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