2018-01-10 03:43:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-04 12:39:14 +00:00
|
|
|
source /home/rust/.cargo/env
|
2018-01-10 03:43:20 +00:00
|
|
|
cargo build --target=x86_64-pc-windows-gnu --release
|
|
|
|
|
|
|
|
mkdir package
|
|
|
|
cp target/x86_64-pc-windows-gnu/release/*.exe package
|
|
|
|
|
2020-10-04 12:39:14 +00:00
|
|
|
DLLS=$(peldd package/*.exe -t --ignore-errors)
|
|
|
|
export DLLS
|
|
|
|
|
2018-01-10 03:43:20 +00:00
|
|
|
for DLL in $DLLS
|
2018-01-10 03:46:47 +00:00
|
|
|
do cp "$DLL" package
|
2018-01-10 03:43:20 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p package/share/{themes,gtk-3.0}
|
2020-10-04 09:29:21 +00:00
|
|
|
cp -r "$GTK_INSTALL_PATH"/share/glib-2.0/schemas package/share/glib-2.0
|
|
|
|
cp -r "$GTK_INSTALL_PATH"/share/icons package/share/icons
|
2018-01-10 03:43:20 +00:00
|
|
|
|
|
|
|
mingw-strip package/*
|
|
|
|
|
2020-10-04 13:16:32 +00:00
|
|
|
zip -q -r package.zip package/*
|