Skip to content

Commit b0fcfa4

Browse files
committed
chore: fix deno compile
1 parent 6e52821 commit b0fcfa4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release-binaries.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,16 @@ jobs:
4848
- name: Build binary
4949
run: |
5050
deno compile \
51-
--target="${{ matrix.target }}" \
52-
--output "${{ steps.binary-name.outputs.name }}" \
53-
src/main.ts
51+
--include ./src/lib/helpers/youtubePlayerReq.ts \
52+
--include ./src/lib/helpers/getFetchClient.ts \
53+
--allow-import=github.com:443,jsr.io:443,cdn.jsdelivr.net:443,esm.sh:443,deno.land:443 \
54+
--allow-net --allow-env --allow-read --allow-sys=hostname \
55+
--allow-write=/var/tmp/youtubei.js,/tmp/invidious-companion.sock \
56+
--target=${{ matrix.target }} \
57+
--output ${{ steps.binary-name.outputs.name }} \
58+
src/main.ts \
59+
--_version_date="$(git log -1 --format=%ci | awk '{print $1}' | sed s/-/./g)" \
60+
--_version_commit="$(git rev-list HEAD --max-count=1 --abbrev-commit)"
5461
5562
- name: Create archive
5663
run: |

0 commit comments

Comments
 (0)