diff --git a/Cargo.toml b/Cargo.toml index 1e5e9c62..728d3513 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,9 @@ members = [ "crates/tests", "crates/veryl", ] +exclude = [ + "support/sourcemap-resolver", +] resolver = "2" [workspace.package] diff --git a/Makefile b/Makefile index e9322f97..219e69fb 100644 --- a/Makefile +++ b/Makefile @@ -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