Added script to produce zip only version

This commit is contained in:
Davide Passoni 2024-02-20 11:23:48 +01:00
parent 462fa53c80
commit 97b277edda
4 changed files with 30 additions and 2 deletions

View File

@ -35,4 +35,11 @@ jobs:
with:
name: development_build_not_a_release
path: ./package
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: zip_only_package
path: ./zip

1
.gitignore vendored
View File

@ -20,6 +20,7 @@ hgt
/package
/build
/DCS Olympus backups
/zip
*.user
*.aps

View File

@ -1 +1 @@
nodemon --watch ./**/*.* --exec "./scripts/copy-package"
nodemon --watch .\**\*.* --exec ".\scripts\copy-package"

View File

@ -41,4 +41,24 @@ REM copy the dependencies
echo D|xcopy /Y /S /E .\dependencies .\package\dependencies
REM other version tags are changed after compilation only in the package folder and should not be committed
call node .\scripts\node\set_version_text.js
call node .\scripts\node\set_version_text.js
REM create the package for the zip version
mkdir zip
REM copy the main configuration file
echo F|xcopy /Y .\package\olympus.json .\zip\config\olympus.json
REM copy the hooks script
echo F|xcopy /Y .\package\Scripts\OlympusHook.lua .\zip\Scripts\Hooks\OlympusHook.lua
REM copy the mod folder
echo D|xcopy /Y /S /E .\package\mod .\zip\Mods\Services\Olympus
REM copy the frontend
echo D|xcopy /Y /S /E .\package\frontend .\zip\Mods\Services\Olympus\frontend
REM install the node_modules in the frontend
cd .\zip\Mods\Services\Olympus\frontend
call npm install
cd ..\..\..\..\..