other: Windows compilation stuff (#222)
Some Windows compilation/deploy stuff. Mostly just a catch-all for some chores.
This commit is contained in:
parent
33b37bb5ac
commit
54a35d632e
|
@ -1,8 +1,8 @@
|
||||||
[target.x86_64-pc-windows-msvc]
|
[target.x86_64-pc-windows-msvc]
|
||||||
rustflags = ["-Ctarget-feature=+crt-static"]
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
|
|
||||||
[target.i686-pc-windows-msvc]
|
[target.i686-pc-windows-msvc]
|
||||||
rustflags = ["-Ctarget-feature=+crt-static"]
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
|
|
||||||
[target.armv7-unknown-linux-gnueabihf]
|
[target.armv7-unknown-linux-gnueabihf]
|
||||||
linker = "arm-linux-gnueabihf-gcc"
|
linker = "arm-linux-gnueabihf-gcc"
|
|
@ -29,7 +29,7 @@ _If relevant, please provide information on:_
|
||||||
|
|
||||||
**System Info:**
|
**System Info:**
|
||||||
|
|
||||||
_Information about your system specifically (in case I have to replicate your system via VM):_
|
_Information about your system specifically (sometimes this matters...):_
|
||||||
|
|
||||||
- _Total RAM:_
|
- _Total RAM:_
|
||||||
|
|
||||||
|
@ -39,6 +39,8 @@ _Information about your system specifically (in case I have to replicate your sy
|
||||||
|
|
||||||
**bottom version (use `btm -V`):**
|
**bottom version (use `btm -V`):**
|
||||||
|
|
||||||
|
**Rust version (if building yourself):**
|
||||||
|
|
||||||
## Additional context
|
## Additional context
|
||||||
|
|
||||||
_If anything hasn't been covered by the above categories, state it down here:_
|
_If anything hasn't been covered by the above categories, state it down here:_
|
||||||
|
|
21
.travis.yml
21
.travis.yml
|
@ -1,5 +1,4 @@
|
||||||
language: rust
|
language: rust
|
||||||
cache: cargo
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: never
|
on_success: never
|
||||||
|
@ -37,10 +36,12 @@ matrix:
|
||||||
env: TARGET=x86_64-unknown-linux-musl
|
env: TARGET=x86_64-unknown-linux-musl
|
||||||
arch: amd64
|
arch: amd64
|
||||||
rust: stable
|
rust: stable
|
||||||
- os: linux
|
|
||||||
env: TARGET=x86_64-unknown-linux-musl
|
# Windows GNU
|
||||||
|
- os: windows
|
||||||
|
env: TARGET=x86_64-pc-windows-gnu
|
||||||
arch: amd64
|
arch: amd64
|
||||||
rust: beta
|
rust: stable
|
||||||
|
|
||||||
# ARM stuff (skip beta for now, see https://github.com/rust-lang/rust/issues/62896)
|
# ARM stuff (skip beta for now, see https://github.com/rust-lang/rust/issues/62896)
|
||||||
- os: linux
|
- os: linux
|
||||||
|
@ -75,18 +76,19 @@ branches:
|
||||||
- master
|
- master
|
||||||
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
|
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
|
||||||
|
|
||||||
|
cache: cargo
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export RUST_BACKTRACE=1
|
- export RUST_BACKTRACE=1
|
||||||
- |
|
- |
|
||||||
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
if [[ $TRAVIS_OS_NAME == "windows" && -n $TRAVIS_TAG ]]; then
|
||||||
if [[ -n $TRAVIS_TAG ]]; then
|
echo "Pre-installing deploy dependencies for Windows...";
|
||||||
powershell Install-WindowsFeature Net-Framework-Core;
|
powershell Install-WindowsFeature Net-Framework-Core;
|
||||||
choco install -y wixtoolset;
|
choco install -y wixtoolset;
|
||||||
export PATH=$PATH:"/c/Program Files (x86)/WiX Toolset v3.11/bin";
|
export PATH=$PATH:"/c/Program Files (x86)/WiX Toolset v3.11/bin";
|
||||||
choco install zip;
|
choco install zip;
|
||||||
rustup target add i686-pc-windows-msvc;
|
rustup target add i686-pc-windows-msvc;
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- rustup target add $TARGET
|
- rustup target add $TARGET
|
||||||
|
@ -117,9 +119,8 @@ before_deploy:
|
||||||
- |
|
- |
|
||||||
echo "Building release..."
|
echo "Building release..."
|
||||||
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
||||||
|
|
||||||
echo "Building Windows 64-bit...";
|
echo "Building Windows 64-bit...";
|
||||||
cargo build --release --target x86_64-pc-windows-msvc;
|
cargo build --release --target $TARGET;
|
||||||
local target_dir=$(ls target/release/build/bottom-*/out/rg.bash | head -n1 | xargs dirname)
|
local target_dir=$(ls target/release/build/bottom-*/out/rg.bash | head -n1 | xargs dirname)
|
||||||
cp -r $target_dir completions
|
cp -r $target_dir completions
|
||||||
mv "./target/x86_64-pc-windows-msvc/release/btm" "btm.exe";
|
mv "./target/x86_64-pc-windows-msvc/release/btm" "btm.exe";
|
||||||
|
@ -128,6 +129,7 @@ before_deploy:
|
||||||
rm "btm.exe"
|
rm "btm.exe"
|
||||||
rm -r "completions"
|
rm -r "completions"
|
||||||
|
|
||||||
|
if [[ $TARGET == "x86_64-pc-windows-msvc" ]]; then
|
||||||
echo "Building Windows 32-bit...";
|
echo "Building Windows 32-bit...";
|
||||||
cargo clean;
|
cargo clean;
|
||||||
cargo build --release --target i686-pc-windows-msvc;
|
cargo build --release --target i686-pc-windows-msvc;
|
||||||
|
@ -153,6 +155,7 @@ before_deploy:
|
||||||
|
|
||||||
echo "Building winget template...";
|
echo "Building winget template...";
|
||||||
python "./deployment/packager.py" $TRAVIS_TAG "./deployment/windows/winget/winget.yaml.template" "$TRAVIS_TAG.yaml" "SHA256" "./bottom_x86_64_installer.msi";
|
python "./deployment/packager.py" $TRAVIS_TAG "./deployment/windows/winget/winget.yaml.template" "$TRAVIS_TAG.yaml" "SHA256" "./bottom_x86_64_installer.msi";
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Done Windows pre-deploy!";
|
echo "Done Windows pre-deploy!";
|
||||||
else
|
else
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
"Ungrouped",
|
"Ungrouped",
|
||||||
"WASD",
|
"WASD",
|
||||||
"Wojnarowski",
|
"Wojnarowski",
|
||||||
|
"aarch",
|
||||||
"andys",
|
"andys",
|
||||||
"armhf",
|
"armhf",
|
||||||
"armv",
|
"armv",
|
||||||
|
|
|
@ -41,6 +41,10 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
|
||||||
To use, run `btm` in a terminal.
|
To use, run `btm` in a terminal.
|
||||||
|
|
||||||
For more [documentation and usage](https://github.com/ClementTsang/bottom/blob/master/README.md), see the [official repo](https://github.com/ClementTsang/bottom).
|
For more [documentation and usage](https://github.com/ClementTsang/bottom/blob/master/README.md), see the [official repo](https://github.com/ClementTsang/bottom).
|
||||||
|
|
||||||
|
|
||||||
|
**Note**
|
||||||
|
This currently depends on Visual C++ Redistributable for Visual Studio 2015 https://chocolatey.org/packages/vcredist2015.
|
||||||
</description>
|
</description>
|
||||||
<releaseNotes>https://github.com/ClementTsang/bottom/releases/tag/$version/</releaseNotes>
|
<releaseNotes>https://github.com/ClementTsang/bottom/releases/tag/$version/</releaseNotes>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
Loading…
Reference in New Issue