package.bat 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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=fis /rs=osx-x64 /cd=osx_files
  7. PackTool /mode=copy /pn=flyinsono /rn=fis /rs=win-x64 /cd=windows_files
  8. PackTool /mode=version /pn=flyinsono /rn=fis /rv=%1
  9. xcopy /y /c /k "..\..\..\Product\flyinsono\Versions.txt" "..\..\..\Product\flyinsono\windows_files\"
  10. REM This is some scripts to do code singature
  11. %vsigntool_path%/vsigntool --config C:\Users\IUS\AppData\Roaming\vsigntoolui/config.xml --cmd sign -i %windows_files_path%\fis.exe -m 3 -r FlyinsonoClient
  12. %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
  13. %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
  14. REM This is some scripts to pick for dedicated files to minus package size
  15. if not exist %pc_full_client_win% mkdir %pc_full_client_win%
  16. if not exist "%pc_full_client_win%\App" mkdir "%pc_full_client_win%\App"
  17. xcopy /y /h /s "%windows_files_path%\App\*" "%pc_full_client_win%\App"
  18. if not exist "%pc_full_client_win%\CefGlueBrowserProcess" mkdir "%pc_full_client_win%\CefGlueBrowserProcess"
  19. copy /y "%windows_files_path%\CefGlueBrowserProcess\Xilium.CefGlue.BrowserProcess.exe" "%pc_full_client_win%\CefGlueBrowserProcess"
  20. if not exist "%pc_full_client_win%\locales" mkdir "%pc_full_client_win%\locales"
  21. copy /y "%windows_files_path%\locales\en-US.pak" "%pc_full_client_win%\locales"
  22. copy /y "%windows_files_path%\locales\zh-CN.pak" "%pc_full_client_win%\locales"
  23. copy /y "%windows_files_path%\locales\zh-TW.pak" "%pc_full_client_win%\locales"
  24. copy /y "%windows_files_path%\locales\ru.pak" "%pc_full_client_win%\locales"
  25. if not exist "%pc_full_client_win%\SmartPublisher" mkdir "%pc_full_client_win%\SmartPublisher"
  26. xcopy /y /h /s "%windows_files_path%\SmartPublisher\*" "%pc_full_client_win%\SmartPublisher"
  27. if not exist "%pc_full_client_win%\RtmpServer" mkdir "%pc_full_client_win%\RtmpServer"
  28. xcopy /y /h /s "%windows_files_path%\RtmpServer\*" "%pc_full_client_win%\RtmpServer"
  29. if not exist "%pc_full_client_win%\Resources" mkdir "%pc_full_client_win%\Resources"
  30. xcopy /y /h /s "%windows_files_path%\Resources\*" "%pc_full_client_win%\Resources"
  31. if not exist "%pc_full_client_win%\swiftshader" mkdir "%pc_full_client_win%\swiftshader"
  32. xcopy /y /h /s "%windows_files_path%\swiftshader\*" "%pc_full_client_win%\swiftshader"
  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=flyinsono /pv=2.0.0.0 /ss=windows_files /od=windows /iss=fiswinsetup\flyinsono.iss
  66. %vsigntool_path%/vsigntool --config C:\Users\IUS\AppData\Roaming\vsigntoolui/config.xml --cmd sign -i %windows_installer_path%\flyinsono.exe -m 3 -r FlyinsonoClient
  67. PackTool /mode=repack /pn=flyinsono /ef=osx_files,windows_files