Skip to content

Commit

Permalink
Use same method of ensuring vars reach packaging files
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Nov 18, 2024
1 parent a621b6f commit 450ce8a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/reusable.package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
if: ${{ runner.os == 'macOS' }}
run: |
PKGPROJ_FILE="packaging/$PLUGIN_NAME.pkgproj"
sed -i.bak "s/{{VERSION}}/$PLUGIN_VERSION/g" "$PKGPROJ_FILE"
sed -i "s/{{PLUGIN_VERSION}}/$PLUGIN_VERSION/g" "$PKGPROJ_FILE"
packagesbuild "$PKGPROJ_FILE"
- name: Sign Installer (MacOS)
Expand Down Expand Up @@ -135,6 +135,11 @@ jobs:
- name: Build Installer (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
ISS_FILE="packaging/$PLUGIN_NAME.iss"
sed -i "s/{{PLUGIN_NAME}}/$PLUGIN_NAME/g" "$ISS_FILE"
sed -i "s/{{PLUGIN_VERSION}}/$PLUGIN_VERSION/g" "$ISS_FILE"
sed -i "s/{{COMPANY_NAME}}/$COMPANY_NAME/g" "$ISS_FILE"
iscc "packaging\${{ env.PLUGIN_NAME }}.iss"
mv "packaging\Output\${{ env.INSTALLER_NAME }}.exe" .
Expand Down
6 changes: 3 additions & 3 deletions packaging/Rotor.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PluginName GetEnv('PLUGIN_NAME')
#define Version GetEnv('PLUGIN_VERSION')
#define Publisher GetEnv('COMPANY_NAME')
#define PluginName {{PLUGIN_NAME}}
#define Version {{PLUGIN_VERSION}}
#define Publisher {{COMPANY_NAME}}
#define Year GetDateTimeString("yyyy","","")

[Setup]
Expand Down
4 changes: 2 additions & 2 deletions packaging/Rotor.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@
<key>USE_HFS+_COMPRESSION</key>
<false/>
<key>VERSION</key>
<string>{{VERSION}}</string>
<string>{{PLUGIN_VERSION}}</string>
</dict>
<key>TYPE</key>
<integer>0</integer>
Expand Down Expand Up @@ -1152,7 +1152,7 @@
<key>USE_HFS+_COMPRESSION</key>
<false/>
<key>VERSION</key>
<string>{{VERSION}}</string>
<string>{{PLUGIN_VERSION}}</string>
</dict>
<key>TYPE</key>
<integer>0</integer>
Expand Down

0 comments on commit 450ce8a

Please sign in to comment.