mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-29 23:50:19 +00:00
ci: update PKGBUILD template as per suggestions
This commit is contained in:
parent
5e0ab22645
commit
279504e401
2 changed files with 6 additions and 4 deletions
|
@ -56,7 +56,6 @@ before_deploy:
|
||||||
zip bottom_i686-pc-windows-msvc.zip "btm.exe";
|
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 "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template";
|
python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $TRAVIS_TAG "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template";
|
||||||
zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/";
|
zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/";
|
||||||
choco install dotnet4.5.1;
|
|
||||||
choco install wixtoolset;
|
choco install wixtoolset;
|
||||||
cargo install cargo-wix;
|
cargo install cargo-wix;
|
||||||
cargo wix init;
|
cargo wix init;
|
||||||
|
|
|
@ -8,7 +8,7 @@ provides=('bottom')
|
||||||
makedepends=('cargo')
|
makedepends=('cargo')
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/ClementTsang/bottom"
|
url="https://github.com/ClementTsang/bottom"
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/ClementTsang/bottom/releases/download/$pkgver/bottom_required_files.tar.gz")
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/ClementTsang/bottom/archive/$pkgver.tar.gz")
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
sha512sums=('$hash')
|
sha512sums=('$hash')
|
||||||
|
|
||||||
|
@ -16,8 +16,11 @@ build() {
|
||||||
cargo build --release --locked
|
cargo build --release --locked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cargo test --release --locked
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
install -Dm755 target/release/btm "$pkgdir/usr/bin/btm"
|
||||||
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
cd "./target/release"
|
|
||||||
install -Dm755 btm "$pkgdir/usr/bin/btm"
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue