ci: Add winget template generation (#199)

Adds winget CI generation.
This commit is contained in:
Clement Tsang 2020-08-22 20:22:47 -04:00 committed by GitHub
parent 3252796f17
commit 397a7e8467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 3 deletions

3
.gitignore vendored
View File

@ -13,3 +13,6 @@ rust-unmangle
.idea/
sample_configs/testing.toml
# Wix
/wix/

View File

@ -62,6 +62,12 @@ before_deploy:
zip bottom_i686-pc-windows-msvc.zip "btm.exe";
python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $TRAVIS_TAG;
zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/";
choco install wixtoolset;
cargo install cargo-wix;
cargo wix init;
cargo wix;
cp "./target/wix/bottom*.msi" ./bottom_x86_64_installer.msi
python "./deployment/packager.py" "./bottom_x86_64_installer.msi" $TRAVIS_TAG "./deployment/windows/winget/winget.yaml.template", "$TRAVIS_TAG.yaml" "SHA256";
else
cargo build --release;
cp ./target/release/btm btm;
@ -78,7 +84,6 @@ before_deploy:
elif [[ $TRAVIS_OS_NAME == "osx" ]]; then
tar -czvf bottom_x86_64-apple-darwin.tar.gz btm;
python "./deployment/packager.py" "./bottom_x86_64-apple-darwin.tar.gz" $TRAVIS_TAG "./deployment/macos/homebrew/bottom.rb.template", "./bottom.rb" "SHA256";
tar -czvf homebrew.tar.gz bottom.rb;
fi
fi
@ -93,8 +98,10 @@ deploy:
- bottom_*.zip
- bottom_*.deb
- arch.tar.gz
- homebrew.tar.gz
- bottom.rb
- choco.zip
- bottom_x86_64_installer.msi
- $TRAVIS_TAG.yaml
skip_cleanup: true
on:
tags: true

View File

@ -17,6 +17,7 @@
"WASD",
"Wojnarowski",
"andys",
"choco",
"cmdline",
"crossterm",
"curr",
@ -56,7 +57,9 @@
"vsize",
"whitespaces",
"winapi",
"winget",
"winnt",
"wixtoolset",
"xzvf",
"ytop"
]

View File

@ -58,7 +58,7 @@ predicates = "1"
cargo-husky = "1"
[package.metadata.deb]
section = "utils"
section = "utility"
assets = [
["target/release/btm", "usr/bin/", "755"],
["LICENSE", "usr/share/doc/btm/", "644"],

View File

@ -0,0 +1,15 @@
Id: Clement.bottom
Version: $version
Name: bottom
Publisher: Clement
License: MIT
AppMoniker: bottom
Tags: tui, monitoring, terminal
Description: Yet another cross-platform graphical process/system monitor.
Homepage: https://github.com/ClementTsang/bottom
Installers:
- Arch: x64
Url: https://github.com/ClementTsang/bottom/releases/download/$version/bottom-$version-x86_64.msi
Sha256: $hash
InstallerType: msi