Skip to content

Commit

Permalink
update cygwin-pack.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 12, 2025
1 parent c391aaa commit 6ef69fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sapi/scripts/cygwin/cygwin-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ NAME="swoole-cli-v${APP_VERSION}-cygwin-x64"
test -d /tmp/${NAME} && rm -rf /tmp/${NAME}
mkdir -p /tmp/${NAME}
mkdir -p /tmp/${NAME}/etc/
mkdir -p /tmp/${NAME}/bin/

cd ${__PROJECT__}/
ldd ${__PROJECT__}/bin/swoole-cli.exe | grep -v '/cygdrive/' | awk '{print $3}'
ldd ${__PROJECT__}/bin/swoole-cli.exe | grep -v '/cygdrive/' | awk '{print $3}' | xargs -I {} cp {} /tmp/${NAME}/
ldd ${__PROJECT__}/bin/swoole-cli.exe | grep -v '/cygdrive/' | awk '{print $3}' | xargs -I {} cp {} /tmp/${NAME}/bin/

ls -lh /tmp/${NAME}/
ls -lh /tmp/${NAME}/

cp -f ${__PROJECT__}/bin/swoole-cli.exe /tmp/${NAME}/
# cp -f ${__PROJECT__}/bin/LICENSE /tmp/${NAME}/
Expand Down

0 comments on commit 6ef69fd

Please sign in to comment.