Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/actions/apply-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,17 @@ runs:
src-tauri/tauri.appstore.conf.json > src-tauri/tauri.appstore.conf.json.tmp
mv src-tauri/tauri.appstore.conf.json.tmp src-tauri/tauri.appstore.conf.json

jq --arg id "$WINDOWS_IDENTIFIER" --arg v "$INPUT_VERSION" \
jq --arg id "$WINDOWS_IDENTIFIER" --arg v "$SEMVER" \
'.identifier = $id | .version = $v' \
src-tauri/tauri.windows.conf.json > src-tauri/tauri.windows.conf.json.tmp
mv src-tauri/tauri.windows.conf.json.tmp src-tauri/tauri.windows.conf.json

if [[ -f "src-tauri/gen/windows/bundle.config.json" ]]; then
jq --arg v "$INPUT_VERSION" '.version = $v' \
src-tauri/gen/windows/bundle.config.json > src-tauri/gen/windows/bundle.config.json.tmp
mv src-tauri/gen/windows/bundle.config.json.tmp src-tauri/gen/windows/bundle.config.json
fi

sed -i.bak "s/^version = \".*\"/version = \"$SEMVER\"/" src-tauri/Cargo.toml
rm -f src-tauri/Cargo.toml.bak

Expand Down
5 changes: 5 additions & 0 deletions .github/actions/setup-desktop-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ runs:
with:
targets: x86_64-pc-windows-msvc, aarch64-pc-windows-msvc

- name: Setup Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "src-tauri -> target"

- name: Install msixbundle-cli
if: inputs.platform == 'windows'
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
runs-on: windows-latest
needs: prepare
env:
APP_PATH: src-tauri/target/msix/Scriptio.msixbundle
APP_PATH: src-tauri/target/msix/Scriptio_${{ needs.prepare.outputs.version }}.msixbundle
steps:
- uses: actions/checkout@v6

Expand All @@ -118,7 +118,7 @@ jobs:

- name: Rename output to fixed name
run: |
Get-Item "src-tauri/target/msix/*.msixbundle" | Rename-Item -NewName "Scriptio.msixbundle"
Get-Item "src-tauri/target/msix/*.msixbundle" | Rename-Item -NewName "Scriptio_${{ needs.prepare.outputs.version }}.msixbundle"

- name: Configure Microsoft Store CLI
uses: microsoft/microsoft-store-apppublisher@v1.1
Expand Down
Loading