@@ -28,15 +28,19 @@ jobs:
2828 matrix :
2929 include :
3030 - name : " macOS-ARM"
31+ identifier : " macos-arm"
3132 platform : " macos-latest" # For Arm based macs (M1 and above).
3233 args : " --target aarch64-apple-darwin"
3334 - name : " macOS-x86_64"
35+ identifier : " macos-x86"
3436 platform : " macos-latest" # For Intel based macs.
3537 args : " --target x86_64-apple-darwin"
3638 - name : " Linux"
39+ identifier : " linux"
3740 platform : " ubuntu-22.04"
3841 args : " "
3942 - name : " Windows"
43+ identifier : " windows"
4044 platform : " windows-latest"
4145 args : " "
4246
@@ -67,17 +71,20 @@ jobs:
6771 sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
6872
6973 - name : Use version from Github Tag (Non-Windows)
70- if : startsWith(github.ref, 'refs/tags/') && matrix.name != 'Windows '
74+ if : startsWith(github.ref, 'refs/tags/') && matrix.identifier != 'windows '
7175 run : |
7276 TAG_NAME="${GITHUB_REF#refs/tags/}"
7377 echo "APP_VERSION=${TAG_NAME}" >> $GITHUB_ENV
7478
7579 - name : Use version from Github Tag (Windows)
76- if : startsWith(github.ref, 'refs/tags/') && matrix.name == 'Windows '
80+ if : startsWith(github.ref, 'refs/tags/') && matrix.identifier == 'windows '
7781 run : |
7882 $TAG_NAME = $env:GITHUB_REF -replace 'refs/tags/', ''
7983 echo "APP_VERSION=$TAG_NAME" >> $env:GITHUB_ENV
8084
85+ - name : Remove File System restrictions (Portable-only)
86+ if : matrix.portable
87+
8188 - name : Bump tauri.conf.json version
8289 uses : restackio/update-json-file-action@6f50afee9a03a456a30cd574123db793319f7544
8390 with :
@@ -130,79 +137,79 @@ jobs:
130137 args : ${{ matrix.args }}
131138
132139 - name : Upload binary (Windows, NSIS)
133- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'Windows '
140+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'windows '
134141 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
135142 with :
136143 if-no-files-found : " warn"
137144 name : " ${{ steps.json_properties.outputs.productName }}-nightly-windows-nsis-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
138145 path : " ./src-tauri/target/release/bundle/nsis/${{ steps.json_properties.outputs.productName }}_${{steps.json_properties.outputs.version}}_x64-setup.exe"
139146
140147 - name : Upload binary (Windows, MSI)
141- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'Windows '
148+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'windows '
142149 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
143150 with :
144151 if-no-files-found : " warn"
145152 name : " ${{ steps.json_properties.outputs.productName }}-nightly-windows-msi-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
146153 path : " ./src-tauri/target/release/bundle/msi/${{ steps.json_properties.outputs.productName }}_${{steps.json_properties.outputs.version}}_x64_en-US.msi"
147154
148155 - name : Upload binary (Windows, portable)
149- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'Windows '
156+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'windows '
150157 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
151158 with :
152159 if-no-files-found : " warn"
153160 name : " ${{ steps.json_properties.outputs.productName }}-nightly-windows-portable-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
154161 path : " ./src-tauri/target/release/${{ steps.json_properties.outputs.productName }}.exe"
155162
156163 - name : Upload binary (Linux, DEB)
157- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'Linux '
164+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'linux '
158165 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
159166 with :
160167 if-no-files-found : " warn"
161168 name : " ${{ steps.json_properties.outputs.productName }}-nightly-linux-deb-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
162169 path : " ./src-tauri/target/release/bundle/deb/${{ steps.json_properties.outputs.productName }}_${{steps.json_properties.outputs.version}}_amd64.deb"
163170
164171 - name : Upload binary (Linux, RPM)
165- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'Linux '
172+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'linux '
166173 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
167174 with :
168175 if-no-files-found : " warn"
169176 name : " ${{ steps.json_properties.outputs.productName }}-nightly-linux-rpm-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
170177 path : " ./src-tauri/target/release/bundle/rpm/${{ steps.json_properties.outputs.productName }}-${{steps.json_properties.outputs.version}}-1.x86_64.rpm"
171178
172179 - name : Upload binary (Linux, AppImage)
173- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'Linux '
180+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'linux '
174181 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
175182 with :
176183 if-no-files-found : " warn"
177184 name : " ${{ steps.json_properties.outputs.productName }}-nightly-linux-app-image-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
178185 path : " ./src-tauri/target/release/bundle/appimage/${{ steps.json_properties.outputs.productName }}_${{steps.json_properties.outputs.version}}_amd64.AppImage"
179186
180187 - name : Upload binary (macOS, x86_64, DMG)
181- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'macOS-x86_64 '
188+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'macos-x86 '
182189 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
183190 with :
184191 if-no-files-found : " warn"
185192 name : " ${{ steps.json_properties.outputs.productName }}-nightly-macos-x86_64-dmg-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
186193 path : " ./src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/${{ steps.json_properties.outputs.productName }}_${{steps.json_properties.outputs.version}}_x64.dmg"
187194
188195 - name : Upload binary (macOS, x86_64, tarball)
189- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'macOS-x86_64 '
196+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'macos-x86 '
190197 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
191198 with :
192199 if-no-files-found : " warn"
193200 name : " ${{ steps.json_properties.outputs.productName }}-nightly-macos-x86_64-tarball-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
194201 path : " ./src-tauri/target/x86_64-apple-darwin/release/bundle/macos/${{ steps.json_properties.outputs.productName }}.app.tar.gz"
195202
196203 - name : Upload binary (macOS, ARM, DMG)
197- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'macOS-ARM '
204+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'macos-arm '
198205 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
199206 with :
200207 if-no-files-found : " warn"
201208 name : " ${{ steps.json_properties.outputs.productName }}-nightly-macos-arm-dmg-${{steps.json_properties.outputs.version}}-${{ github.ref_name }}"
202209 path : " ./src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/${{ steps.json_properties.outputs.productName }}_${{steps.json_properties.outputs.version}}_aarch64.dmg"
203210
204211 - name : Upload binary (macOS, ARM, tarball)
205- if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.name == 'macOS-ARM '
212+ if : (startsWith(github.ref, 'refs/tags/') != true) && matrix.identifier == 'macos-arm '
206213 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
207214 with :
208215 if-no-files-found : " warn"
0 commit comments