Skip to content

Commit

Permalink
Add version code autogen
Browse files Browse the repository at this point in the history
  • Loading branch information
xchwarze committed May 18, 2024
1 parent 09eb054 commit 2116799
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
sed -i "s|C:\\\\code\\\\toolkit|$WORKSPACE_SRC_PATH|g" setup.iss
sed -i "s|C:\\\\code|$WORKSPACE_BUILD_PATH|g" setup.iss
- name: Update version number in full installer .iss
working-directory: ${{ env.FULL_INSTALLER_PATH }}
shell: bash
run: |
VERSION_CODE=$(date +'%Y.%m')
sed -i "s/#define MyAppVersion \"RELEASE\"/#define MyAppVersion \"$VERSION_CODE\"/g" setup.iss
- name: Build full installer
working-directory: ${{ env.FULL_INSTALLER_PATH }}
run: ISCC.exe setup.iss /DMySrcDir="${{ env.SRC_PATH }}" /DMyOutputDir="${{ github.workspace }}"
Expand All @@ -51,6 +58,13 @@ jobs:
sed -i "s|C:\\\\code\\\\toolkit|$WORKSPACE_SRC_PATH|g" setup.iss
sed -i "s|C:\\\\code|$WORKSPACE_BUILD_PATH|g" setup.iss
- name: Update version number in lite installer .iss
working-directory: ${{ env.FULL_INSTALLER_PATH }}
shell: bash
run: |
VERSION_CODE=$(date +'%Y.%m')
sed -i "s/#define MyAppVersion \"RELEASE\"/#define MyAppVersion \"$VERSION_CODE\"/g" setup.iss
- name: Build lite installer
working-directory: ${{ env.LITE_INSTALLER_PATH }}
run: ISCC.exe setup.iss /DMySrcDir="${{ env.SRC_PATH }}" /DMyOutputDir="${{ github.workspace }}"
Expand Down
2 changes: 1 addition & 1 deletion bin/installer/iss/full/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define MyAppName "Indetectables Toolkit"
#define MyAppNameOriginal "Indetectables Toolkit"
#define MyAppVersion "2023.11"
#define MyAppVersion "RELEASE"
#define MyAppPublisher "Indetectables"
#define MyAppURL "https://www.indetectables.net/"
#define MyAppToolsFolder "{app}\toolkit"
Expand Down
2 changes: 1 addition & 1 deletion bin/installer/iss/lite/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define MyAppName "Indetectables Toolkit Lite"
#define MyAppNameOriginal "Indetectables Toolkit"
#define MyAppVersion "2023.11"
#define MyAppVersion "RELEASE"
#define MyAppPublisher "Indetectables"
#define MyAppURL "https://www.indetectables.net/"
#define MyAppToolsFolder "{app}\toolkit"
Expand Down

0 comments on commit 2116799

Please sign in to comment.