7 Star 27 Fork 11

Gitee 极速下载/Gnirehtet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Genymobile/gnirehtet
克隆/下载
release 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# Make a gnirehtet release.
#
# Put your keystore properties into ~/.gradle/gradle.properties
# (check app/build.gradle)
set -e # fail on error
GRADLE=${GRADLE:-./gradlew} # set value ./gradlew if not set
DIST=dist
TARGET_DIR_JAVA=gnirehtet-java
TARGET_DIR_RUST_LINUX=gnirehtet-rust-linux64
TARGET_DIR_RUST_WIN=gnirehtet-rust-win64
version=$(git describe --tags --always)
TARGET_JAVA="$TARGET_DIR_JAVA-$version".zip
TARGET_RUST_LINUX="$TARGET_DIR_RUST_LINUX-$version".zip
TARGET_RUST_WIN="$TARGET_DIR_RUST_WIN-$version".zip
"$GRADLE" checkAll releaseAll releaseRustWindows
rm -rf "$DIST"
for dir in "$TARGET_DIR_JAVA" "$TARGET_DIR_RUST_LINUX" "$TARGET_DIR_RUST_WIN"
do
mkdir -p "$DIST/$dir"
cp app/build/outputs/apk/release/gnirehtet-release.apk "$DIST/$dir"/gnirehtet.apk
done
cp relay-java/build/libs/gnirehtet.jar \
relay-java/scripts/gnirehtet \
relay-java/scripts/gnirehtet.cmd \
relay-java/scripts/gnirehtet-run.cmd \
"$DIST/$TARGET_DIR_JAVA"/
cp relay-rust/target/release/gnirehtet "$DIST/$TARGET_DIR_RUST_LINUX"/
strip "$DIST/$TARGET_DIR_RUST_LINUX"/gnirehtet # remove symbols for smaller binary
cp relay-rust/target/x86_64-pc-windows-gnu/release/gnirehtet.exe \
relay-rust/scripts/gnirehtet-run.cmd \
"$DIST/$TARGET_DIR_RUST_WIN"/
cd "$DIST"
zip -r "$TARGET_JAVA" "$TARGET_DIR_JAVA"
zip -r "$TARGET_RUST_LINUX" "$TARGET_DIR_RUST_LINUX"
zip -r "$TARGET_RUST_WIN" "$TARGET_DIR_RUST_WIN"
sha256sum "$TARGET_JAVA" "$TARGET_RUST_LINUX" "$TARGET_RUST_WIN" > SHA256SUMS.txt
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/mirrors/Gnirehtet.git
git@gitee.com:mirrors/Gnirehtet.git
mirrors
Gnirehtet
Gnirehtet
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385