Skip to content

Commit 561925e

Browse files
author
Varg
committed
Build the latest package next to the InnoSetup installer
1 parent 7d0b17f commit 561925e

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

.github/workflows/release_latest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ jobs:
1515
- name: Get current version based on date
1616
id: version
1717
run: echo "version=$(date +'%Y_%m_%d')" >> $GITHUB_OUTPUT
18-
- name: Build release
19-
run: ./build_gamekit.sh "${{ steps.version.outputs.version }}"
18+
- name: Build Win32 release
19+
run: ./build_gamekit_windows.sh "${{ steps.version.outputs.version }}"
20+
- name: Prepare a package
21+
run: ./build_games_package.sh
2022
- name: Publish release
2123
uses: softprops/action-gh-release@v2
2224
with:
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ set -e
44

55
export GAMEKIT_VER="${1:-latest}"
66

7+
mkdir -p dist
8+
79
# Validation
810
[ ! -d "./contents" ] && echo "Run this script from the project root directory" && exit
911

10-
mkdir -p build
12+
mkdir -p build/win32
1113

1214
REL_CONTENTS_DIR=./contents
13-
REL_BUILD_DIR=./build
15+
REL_BUILD_DIR=./build/win32
1416
REL_BUILD_BIN_DIR=$REL_BUILD_DIR/bin
1517

1618
echo "Retrieving the latest QSP Classic version"

build_games_package.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
export GAMEKIT_VER="${1:-latest}"
6+
7+
mkdir -p dist
8+
9+
# Validation
10+
[ ! -d "./contents" ] && echo "Run this script from the project root directory" && exit
11+
12+
mkdir -p build/package
13+
14+
REL_CONTENTS_DIR=./contents
15+
REL_BUILD_DIR=./build/package
16+
17+
echo "Copying contents"
18+
cp -r $REL_CONTENTS_DIR/. $REL_BUILD_DIR
19+
20+
echo "Compressing the package $GAMEKIT_VER"
21+
(cd $REL_BUILD_DIR; zip -7 -r ./games_package-$GAMEKIT_VER.zip ./)
22+
23+
mv $REL_BUILD_DIR/*.zip ./dist/

0 commit comments

Comments
 (0)