mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 22:12:53 +01:00
ci(artifacts): add msi to release artifacts
These changes to the GitHub actions workflows will include an MSI installer in the artifacts that are uploaded at the end of each successful build, and also attach an MSI installer to a release when the job runs on a tag that creates a new release version. re #152
This commit is contained in:
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
@@ -13,7 +13,7 @@ updates:
|
|||||||
- package-ecosystem: "cargo"
|
- package-ecosystem: "cargo"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "monthly"
|
interval: "weekly"
|
||||||
assignees:
|
assignees:
|
||||||
- "LGUG2Z"
|
- "LGUG2Z"
|
||||||
commit-message:
|
commit-message:
|
||||||
|
|||||||
10
.github/workflows/windows.yaml
vendored
10
.github/workflows/windows.yaml
vendored
@@ -76,6 +76,10 @@ jobs:
|
|||||||
- name: Run a full build
|
- name: Run a full build
|
||||||
run: |
|
run: |
|
||||||
cargo build --locked --release --target ${{ matrix.target }}
|
cargo build --locked --release --target ${{ matrix.target }}
|
||||||
|
- name: Create MSI installer
|
||||||
|
run: |
|
||||||
|
cargo install cargo-wix
|
||||||
|
cargo wix -p komorebi --nocapture -I .\wix\main.wxs --target x86_64-pc-windows-msvc
|
||||||
- name: Upload the built artifacts
|
- name: Upload the built artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -85,6 +89,7 @@ jobs:
|
|||||||
target/${{ matrix.target }}/release/komorebic.exe
|
target/${{ matrix.target }}/release/komorebic.exe
|
||||||
target/${{ matrix.target }}/release/komorebi.pdb
|
target/${{ matrix.target }}/release/komorebi.pdb
|
||||||
target/${{ matrix.target }}/release/komorebic.pdb
|
target/${{ matrix.target }}/release/komorebic.pdb
|
||||||
|
target/wix/komorebi-*.msi
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
@@ -101,3 +106,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SCOOP_TOKEN: ${{ secrets.SCOOP_TOKEN }}
|
SCOOP_TOKEN: ${{ secrets.SCOOP_TOKEN }}
|
||||||
|
- name: Add MSI to release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: "target/wix/komorebi-*.msi"
|
||||||
|
|||||||
@@ -42,4 +42,4 @@ checksum:
|
|||||||
name_template: checksums.txt
|
name_template: checksums.txt
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
|
|||||||
4
justfile
4
justfile
@@ -8,6 +8,10 @@ fmt:
|
|||||||
cargo +nightly fmt
|
cargo +nightly fmt
|
||||||
cargo +stable clippy
|
cargo +stable clippy
|
||||||
prettier --write README.md
|
prettier --write README.md
|
||||||
|
prettier --write .goreleaser.yml
|
||||||
|
prettier --write .github/dependabot.yml
|
||||||
|
prettier --write .github/FUNDING.yml
|
||||||
|
prettier --write .github/workflows/windows.yaml
|
||||||
|
|
||||||
install-komorebic:
|
install-komorebic:
|
||||||
cargo +stable install --path komorebic --locked
|
cargo +stable install --path komorebic --locked
|
||||||
|
|||||||
@@ -59,9 +59,9 @@
|
|||||||
|
|
||||||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
|
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
|
||||||
|
|
||||||
<Product Id='*' Name='komorebi' UpgradeCode='F8B967B5-7E7B-4E3A-895B-B789EC898B54' Manufacturer='Jade Iqbal' Language='1033' Codepage='1252' Version='$(var.Version)'>
|
<Product Id='*' Name='komorebi' UpgradeCode='F8B967B5-7E7B-4E3A-895B-B789EC898B54' Manufacturer='LGUG2Z' Language='1033' Codepage='1252' Version='$(var.Version)'>
|
||||||
|
|
||||||
<Package Id='*' Keywords='Installer' Description='A tiling window manager for Windows' Manufacturer='Jade Iqbal' InstallerVersion='450' Languages='1033' Compressed='yes' InstallScope='perMachine' SummaryCodepage='1252' />
|
<Package Id='*' Keywords='Installer' Description='A tiling window manager for Windows' Manufacturer='LGUG2Z' InstallerVersion='450' Languages='1033' Compressed='yes' InstallScope='perMachine' SummaryCodepage='1252' />
|
||||||
|
|
||||||
<MajorUpgrade Schedule='afterInstallInitialize' DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.' />
|
<MajorUpgrade Schedule='afterInstallInitialize' DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.' />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user