fix(build): respect relative path in archive.sh (#2462)

This commit is contained in:
Yury Semikhatsky 2020-06-03 17:47:33 -07:00 committed by GitHub
parent 8149e1d9dd
commit 18aafc361f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ createZipForMac() {
ditto {./WebKitBuild/Release,$tmpdir}/WebInspectorUI.framework
ditto {./WebKitBuild/Release,$tmpdir}/WebKit.framework
ditto {./WebKitBuild/Release,$tmpdir}/WebKitLegacy.framework
ditto {..,$tmpdir}/pw_run.sh
ditto {$SCRIPTS_DIR,$tmpdir}/pw_run.sh
# copy protocol
node $SCRIPTS_DIR/concat_protocol.js > $tmpdir/protocol.json
@ -146,8 +146,7 @@ createZipForMac() {
}
trap "cd $(pwd -P)" EXIT
SCRIPTS_DIR="$(dirname "$0")"
cd $SCRIPTS_DIR
cd "$(dirname "$0")"
SCRIPTS_DIR="$(pwd -P)"
main "$@"