Skip to content

Commit

Permalink
Mitigate issues related to archive permissions in rust-1.67
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottt committed Jan 31, 2023
1 parent d76637e commit 42885bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/build-tarballs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if [ "$platform" = "x86_64-windows" ]; then
"$WIX/bin/light" -out dist/$bin_pkgname.msi target/wasmtime.wixobj -ext WixUtilExtension
rm dist/$bin_pkgname.wixpdb
elif [ "$platform" = "x86_64-mingw" ]; then
sudo chmod 0664 target/x86_64-pc-windows-gnu/release/libwasmtime.a
cp target/x86_64-pc-windows-gnu/release/wasmtime.exe tmp/$bin_pkgname
cp target/x86_64-pc-windows-gnu/release/{wasmtime.dll,libwasmtime.a,libwasmtime.dll.a} tmp/$api_pkgname/lib
fmt=zip
Expand All @@ -57,16 +58,20 @@ elif [ "$platform" = "x86_64-macos" ]; then
# directive than the default one that comes out of the linker when typically
# doing `cargo build`. For more info see #984
install_name_tool -id "@rpath/libwasmtime.dylib" target/release/libwasmtime.dylib
sudo chmod 0664 target/release/libwasmtime.a
cp target/release/wasmtime tmp/$bin_pkgname
cp target/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib
elif [ "$platform" = "aarch64-macos" ]; then
install_name_tool -id "@rpath/libwasmtime.dylib" target/aarch64-apple-darwin/release/libwasmtime.dylib
sudo chmod 0664 target/aarch64/apple/darwin/release/libwasmtime.a
cp target/aarch64-apple-darwin/release/wasmtime tmp/$bin_pkgname
cp target/aarch64-apple-darwin/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib
elif [ "$target" = "" ]; then
sudo chmod 0664 target/release/libwasmtime.a
cp target/release/wasmtime tmp/$bin_pkgname
cp target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib
else
sudo chmod 0664 target/$target/release/libwasmtime.a
cp target/$target/release/wasmtime tmp/$bin_pkgname
cp target/$target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib
fi
Expand Down

0 comments on commit 42885bf

Please sign in to comment.