pkg: add completion files to winget/msi installer (#1666)
* pkg: add completion files to winget/msi installer * hmmm * hmmmm * oh lol
This commit is contained in:
parent
f3a2067a78
commit
43a4a36429
|
@ -301,7 +301,7 @@ jobs:
|
||||||
path: release
|
path: release
|
||||||
|
|
||||||
build-msi:
|
build-msi:
|
||||||
name: "Build MSI installer"
|
name: "Build MSI (WiX) installer"
|
||||||
runs-on: "windows-2019"
|
runs-on: "windows-2019"
|
||||||
timeout-minutes: 12
|
timeout-minutes: 12
|
||||||
steps:
|
steps:
|
||||||
|
@ -325,13 +325,17 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
|
|
||||||
|
- name: Install cargo-wix
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
cargo install cargo-wix --version 0.3.8 --locked
|
||||||
|
|
||||||
- name: Build MSI file
|
- name: Build MSI file
|
||||||
shell: powershell
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
BTM_GENERATE: ""
|
BTM_GENERATE: true
|
||||||
run: |
|
run: |
|
||||||
cargo install cargo-wix --version 0.3.8 --locked
|
cargo wix --nocapture
|
||||||
cargo wix
|
|
||||||
|
|
||||||
- name: Generate artifact attestation for file
|
- name: Generate artifact attestation for file
|
||||||
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
|
||||||
|
|
|
@ -116,7 +116,7 @@ jobs:
|
||||||
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
||||||
|
|
||||||
- name: Automatically create PR for winget repos
|
- name: Automatically create PR for winget repos
|
||||||
uses: vedantmgoyal2009/winget-releaser@0db4f0a478166abd0fa438c631849f0b8dcfb99f
|
uses: vedantmgoyal2009/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e
|
||||||
with:
|
with:
|
||||||
identifier: Clement.bottom
|
identifier: Clement.bottom
|
||||||
installers-regex: '^bottom_x86_64_installer\.msi$'
|
installers-regex: '^bottom_x86_64_installer\.msi$'
|
||||||
|
|
|
@ -222,6 +222,7 @@ depends = "libc6:armhf (>= 2.28)"
|
||||||
[package.metadata.wix]
|
[package.metadata.wix]
|
||||||
output = "bottom_x86_64_installer.msi"
|
output = "bottom_x86_64_installer.msi"
|
||||||
|
|
||||||
|
|
||||||
[package.metadata.generate-rpm]
|
[package.metadata.generate-rpm]
|
||||||
assets = [
|
assets = [
|
||||||
{ source = "target/release/btm", dest = "/usr/bin/", mode = "755" },
|
{ source = "target/release/btm", dest = "/usr/bin/", mode = "755" },
|
||||||
|
|
53
wix/main.wxs
53
wix/main.wxs
|
@ -102,6 +102,53 @@
|
||||||
KeyPath='yes'/>
|
KeyPath='yes'/>
|
||||||
</Component>
|
</Component>
|
||||||
|
|
||||||
|
<Directory Id='Completions' Name='completions'>
|
||||||
|
<Component Id='btmPowershell' Guid='*'>
|
||||||
|
<File
|
||||||
|
Id='btmPs1'
|
||||||
|
Name='_btm.ps1'
|
||||||
|
DiskId='1'
|
||||||
|
Source='$(var.CargoTargetDir)\tmp\bottom\completion\_btm.ps1'
|
||||||
|
KeyPath='yes'/>
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
<Component Id='btmNu' Guid='*'>
|
||||||
|
<File
|
||||||
|
Id='btmNu'
|
||||||
|
Name='btm.nu'
|
||||||
|
DiskId='1'
|
||||||
|
Source='$(var.CargoTargetDir)\tmp\bottom\completion\btm.nu'
|
||||||
|
KeyPath='yes'/>
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
<Component Id='btmFish' Guid='*'>
|
||||||
|
<File
|
||||||
|
Id='btmFish'
|
||||||
|
Name='btm.fish'
|
||||||
|
DiskId='1'
|
||||||
|
Source='$(var.CargoTargetDir)\tmp\bottom\completion\btm.fish'
|
||||||
|
KeyPath='yes'/>
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
<Component Id='btmBash' Guid='*'>
|
||||||
|
<File
|
||||||
|
Id='btmBash'
|
||||||
|
Name='btm.bash'
|
||||||
|
DiskId='1'
|
||||||
|
Source='$(var.CargoTargetDir)\tmp\bottom\completion\btm.bash'
|
||||||
|
KeyPath='yes'/>
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
<Component Id='btmZsh' Guid='*'>
|
||||||
|
<File
|
||||||
|
Id='btmZsh'
|
||||||
|
Name='_btm'
|
||||||
|
DiskId='1'
|
||||||
|
Source='$(var.CargoTargetDir)\tmp\bottom\completion\_btm'
|
||||||
|
KeyPath='yes'/>
|
||||||
|
</Component>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
<Directory Id='Bin' Name='bin'>
|
<Directory Id='Bin' Name='bin'>
|
||||||
<Component Id='Path' Guid='15D841CF-0363-4DBB-BF55-ECCB43B9EB03' KeyPath='yes'>
|
<Component Id='Path' Guid='15D841CF-0363-4DBB-BF55-ECCB43B9EB03' KeyPath='yes'>
|
||||||
<Environment
|
<Environment
|
||||||
|
@ -141,6 +188,12 @@
|
||||||
-->
|
-->
|
||||||
<ComponentRef Id='License'/>
|
<ComponentRef Id='License'/>
|
||||||
|
|
||||||
|
<ComponentRef Id='btmPowershell'/>
|
||||||
|
<ComponentRef Id='btmNu'/>
|
||||||
|
<ComponentRef Id='btmFish'/>
|
||||||
|
<ComponentRef Id='btmBash'/>
|
||||||
|
<ComponentRef Id='btmZsh'/>
|
||||||
|
|
||||||
<ComponentRef Id='binary0'/>
|
<ComponentRef Id='binary0'/>
|
||||||
|
|
||||||
<Feature
|
<Feature
|
||||||
|
|
Loading…
Reference in New Issue