Skip to content

Commit dd5ecf8

Browse files
committed
Merge branch 'feature/windows-installer' of https://github.com/oscript-library/ovm into feature/windows-installer
2 parents b3d33df + b454943 commit dd5ecf8

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ jobs:
3030
- name: Extract version from packagedef
3131
id: get_version
3232
run: |
33-
VERSION=$(grep -oP '\.Версия\("\K[^"]+' packagedef)
34-
echo "version=$VERSION" >> $GITHUB_OUTPUT
33+
VERSION=$(grep -oP '\.Версия\("\K[^"]+' packagedef || true)
34+
if [ -z "$VERSION" ]; then
35+
echo "Error: failed to extract version from packagedef."
36+
exit 1
37+
fi
38+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3539
echo "Extracted version: $VERSION"
3640
3741
- name: Create dist directory
@@ -41,6 +45,10 @@ jobs:
4145
4246
- name: Build Windows installer with Inno Setup
4347
run: |
48+
if [ ! -f "ovm.exe" ]; then
49+
echo "Error: ovm.exe not found in workspace root. Ensure the 'Build ovm.exe' step completed successfully."
50+
exit 1
51+
fi
4452
docker run --rm -i -v "$GITHUB_WORKSPACE:/work" -w /work amake/innosetup \
4553
/DMyAppVersion="${{ steps.get_version.outputs.version }}" \
4654
install/ovm.iss

0 commit comments

Comments
 (0)