mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
fix: improve Windows build support and CI/CD workflow (#283)
- Fix Windows zip command issue by using PowerShell Compress-Archive - Add Windows support for OSS upload with ossutil - Replace Chinese comments with English in build.yml - Fix bash syntax error in package_zip function - Improve code formatting and consistency - Update various configuration files for better cross-platform support Resolves Windows build failures in GitHub Actions.
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
|
||||
# 脚本名称:scp_to_servers.sh
|
||||
|
||||
rm ./target/x86_64-unknown-linux-musl/release/rustfs.zip
|
||||
# 压缩./target/x86_64-unknown-linux-musl/release/rustfs
|
||||
zip -j ./target/x86_64-unknown-linux-musl/release/rustfs.zip ./target/x86_64-unknown-linux-musl/release/rustfs
|
||||
rm ./target/x86_64-unknown-linux-gnu/release/rustfs.zip
|
||||
# 压缩./target/x86_64-unknown-linux-gnu/release/rustfs
|
||||
zip -j ./target/x86_64-unknown-linux-gnu/release/rustfs.zip ./target/x86_64-unknown-linux-gnu/release/rustfs
|
||||
|
||||
# 本地文件路径
|
||||
LOCAL_FILE="./target/x86_64-unknown-linux-musl/release/rustfs.zip"
|
||||
# 上传到服务器
|
||||
LOCAL_FILE="./target/x86_64-unknown-linux-gnu/release/rustfs.zip"
|
||||
REMOTE_PATH="~"
|
||||
|
||||
# 必须传入IP参数,否则报错退出
|
||||
|
||||
Reference in New Issue
Block a user