Skip to content

Commit

Permalink
cleanup release script
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Feb 20, 2023
1 parent f08f6bc commit 34c2bec
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ if [ "$(git status --porcelain)" ]; then
exit 1
fi

# push
git push

# publish
# publish to crates.io
cargo publish --no-verify

# get version
Expand All @@ -39,22 +40,3 @@ git push origin "v$version"

# github create release
gh release create "v$version" --title "v$version" --notes "new release: v$version"

# https://doc.rust-lang.org/nightly/rustc/platform-support.html

# mkdir "releases"

function release() {
target=$1
cargo build --release --target $target
mv "target/$target/release/versatiles" "releases/versatiles-$target"
}

# release "aarch64-unknown-linux-gnu" # ARM64 Linux (kernel 4.1, glibc 2.17+)
# release "i686-pc-windows-gnu" # 32-bit MinGW (Windows 7+)
# release "i686-pc-windows-msvc" # 32-bit MSVC (Windows 7+)
# release "i686-unknown-linux-gnu" # 32-bit Linux (kernel 3.2+, glibc 2.17+)
# release "x86_64-apple-darwin" # 64-bit macOS (10.7+, Lion+)
# release "x86_64-pc-windows-gnu" # 64-bit MinGW (Windows 7+)
# release "x86_64-pc-windows-msvc" # 64-bit MSVC (Windows 7+)
# release "x86_64-unknown-linux-gnu" # 64-bit Linux (kernel 3.2+, glibc 2.17+)

0 comments on commit 34c2bec

Please sign in to comment.