Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
CI: improve packaging workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
  • Loading branch information
Ookiineko committed Oct 28, 2022
1 parent 6114b6f commit fb607ab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,23 @@ jobs:
echo -e "\n### make install ###\n"
DESTDIR=dists cmake --install build
cd dists
echo -e "\n### strip symbols ###\n"
bins=$(ls -1 ./*.exe)
for bin in $bins; do
echo "stripping unneeded symbols for '${bin}'"
strip --strip-unneeded "${bin}"
done
export PATH="/usr/local/bin:${PATH}"
hash -r
echo -e "\n### pyinstaller-ify ###\n"
for script in $(file `find . -maxdepth 1 -type f` | grep "Python script" | gawk -F ':' '{ print $1 }'); do
pyinstaller -F "${script}"
mv -v dist/"${script}".exe .
rm -rf build dist "${script}" "${script}".spec
done
leftovers=$(find . -mindepth 1 -maxdepth 1 -type d)
[[ ! -z "${leftovers}" ]] && rm -rf "${leftovers}"
echo -e "\n### fetch external binaries ###\n"
cp -v /usr/libexec/busybox-standalone/bin/busybox.exe .
cp -v `which lz4` lz4.exe
cp -v `which openssl` openssl.exe
Expand All @@ -125,12 +133,13 @@ jobs:
cp -v platform-tools/{AdbWinApi,AdbWinUsbApi,libwinpthread-1}.dll .
cp -v platform-tools/{NOTICE.txt,source.properties} .
rm -rf platform-tools platform-tools.zip
echo -e "\n### export standalone release ###\n"
set +e
set +o pipefail
../scripts/cygwin-standalone-release.sh
set -e
set -o pipefail
echo -e "\n### all done ###\n"
echo -e "\n### all done, upload artifacts ###\n"
- name: upload dists
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit fb607ab

Please sign in to comment.