diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0c065584d..8869962db 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -27,6 +27,7 @@ jobs: path-type: inherit install: >- zip + rsync - name: Checkout repository uses: actions/checkout@v3 diff --git a/src/bin/buildForWindows.sh b/src/bin/buildForWindows.sh index be69273a2..723560507 100755 --- a/src/bin/buildForWindows.sh +++ b/src/bin/buildForWindows.sh @@ -33,6 +33,9 @@ try export GIT_WORK_TREE=${TMP_FOLDER}; git checkout HEAD -f \ || fatal "failed to copy etherpad to temporary folder" try mkdir "${TMP_FOLDER}"/.git try git rev-parse HEAD >${TMP_FOLDER}/.git/HEAD +try cp -r src/package.json src/package-lock.json "${TMP_FOLDER}" +try rsync -a ./src/node_modules "${TMP_FOLDER}"/src/ + try cd "${TMP_FOLDER}" [ -f src/package.json ] || fatal "failed to copy etherpad to temporary folder"