Skip to content

Commit

Permalink
Update package_release_with_server.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicm93 authored Mar 14, 2024
1 parent eb4a704 commit 54afcf9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package_release_with_server.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,29 @@ git lfs pull

Write-Output "build"
Set-Location ./project

if ($IsWindows) {
npm install
npm run build:release
} else {
rm -rf node_modules
rm -f package-lock.json
npm cache clean --force

npm install
npm run build:release
}



if ($LASTEXITCODE -ne 0) {
throw "npm run build:release failed, exit code $LASTEXITCODE"
}

Set-Location ../../

New-Item -ItemType Directory -Force -Path "$ZIP_Folder/user/mods/"
Copy-Item -Path "$SERVER_DIR/project/build/*" -Destination "$ZIP_Folder" -Recurse
Copy-Item -Path "$SERVER_DIR/project/build\*" -Destination "$ZIP_Folder" -Recurse
Copy-Item -Path "./SITCoop" -Destination "$ZIP_Folder/user/mods/" -Recurse

# make release package
Expand Down

0 comments on commit 54afcf9

Please sign in to comment.