Skip to content

Commit

Permalink
Revert "Revert "Update release script""
Browse files Browse the repository at this point in the history
This reverts commit 4ae5546.
  • Loading branch information
dalance committed Jul 3, 2024
1 parent 4ae5546 commit 6602622
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ members = [
"crates/tests",
"crates/veryl",
]
exclude = [
"support/sourcemap-resolver",
]
resolver = "2"

[workspace.package]
Expand Down
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,26 @@ lint:

release_lnx:
cargo build --locked --release --target=x86_64-unknown-linux-musl $(addprefix --bin , ${BIN_NAMES})
zip -j ${ZIP_NAME}-x86_64-linux.zip $(addprefix target/x86_64-unknown-linux-musl/release/, ${BIN_NAMES})
cd ./support/sourcemap-resolver; cargo build --locked --release --target=x86_64-unknown-linux-musl
zip -j ${ZIP_NAME}-x86_64-linux.zip $(addprefix target/x86_64-unknown-linux-musl/release/, ${BIN_NAMES}) \
./support/sourcemap-resolver/target/x86_64-unknown-linux-musl/release/sourcemap-resolver

release_win:
cargo build --locked --release --target=x86_64-pc-windows-msvc $(addprefix --bin , ${BIN_NAMES})
cd ./support/sourcemap-resolver; cargo build --locked --release --target=x86_64-pc-windows-msvc
mv -v $(addsuffix .exe, $(addprefix target/x86_64-pc-windows-msvc/release/, ${BIN_NAMES})) ./
7z a ${ZIP_NAME}-x86_64-windows.zip $(addsuffix .exe, ${BIN_NAMES})
mv -v ./support/sourcemap-resolver/target/x86_64-pc-windows-msvc/release/sourcemap-resolver.exe ./
7z a ${ZIP_NAME}-x86_64-windows.zip $(addsuffix .exe, ${BIN_NAMES}) sourcemap-resolver.exe

release_mac:
cargo build --locked --release --target=x86_64-apple-darwin $(addprefix --bin , ${BIN_NAMES})
cargo build --locked --release --target=aarch64-apple-darwin $(addprefix --bin , ${BIN_NAMES})
zip -j ${ZIP_NAME}-x86_64-mac.zip $(addprefix target/x86_64-apple-darwin/release/, ${BIN_NAMES})
zip -j ${ZIP_NAME}-aarch64-mac.zip $(addprefix target/aarch64-apple-darwin/release/, ${BIN_NAMES})
cd ./support/sourcemap-resolver; cargo build --locked --release --target=x86_64-apple-darwin
cd ./support/sourcemap-resolver; cargo build --locked --release --target=aarch64-apple-darwin
zip -j ${ZIP_NAME}-x86_64-mac.zip $(addprefix target/x86_64-apple-darwin/release/, ${BIN_NAMES}) \
./support/sourcemap-resolver/target/x86_64-apple-darwin/release/sourcemap-resolver
zip -j ${ZIP_NAME}-aarch64-mac.zip $(addprefix target/aarch64-apple-darwin/release/, ${BIN_NAMES}) \
./support/sourcemap-resolver/target/aarch64-apple-darwin/release/sourcemap-resolver

release_rpm:
mkdir -p target
Expand Down

0 comments on commit 6602622

Please sign in to comment.