From 9c86015b541c74e2629774fc773a01f9bb2960c6 Mon Sep 17 00:00:00 2001 From: Max Aller Date: Tue, 9 Jul 2024 06:26:03 -0700 Subject: [PATCH] Switch coi-serviceworker to a git submodule instead of a download. --- .github/workflows/godot-ci.yml | 7 +++---- .gitmodules | 3 +++ external/coi-serviceworker | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .gitmodules create mode 160000 external/coi-serviceworker diff --git a/.github/workflows/godot-ci.yml b/.github/workflows/godot-ci.yml index 582ff6b..d8c9022 100644 --- a/.github/workflows/godot-ci.yml +++ b/.github/workflows/godot-ci.yml @@ -20,6 +20,7 @@ jobs: uses: actions/checkout@v4 with: lfs: true + submodules: true - name: Setup run: | mkdir -v -p ~/.local/share/godot/export_templates/ @@ -34,10 +35,8 @@ jobs: # https://github.com/godotengine/godot-proposals/issues/6616#issuecomment-1513340085 - name: Inject coi-serviceworker run: | - cd $PROJECT_PATH/../build/web/ - apt-get update && apt-get install -y curl - curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js - sed -i 's#\( \)# \n\1#g' index.html + cp external/coi-serviceworker/coi-serviceworker.js build/web/coi-serviceworker.js + sed -i 's#\( \)# \n\1#g' build/web/index.html - name: Upload Artifact uses: actions/upload-artifact@v1 with: diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c0a7c7b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "external/coi-serviceworker"] + path = external/coi-serviceworker + url = https://github.com/gzuidhof/coi-serviceworker.git diff --git a/external/coi-serviceworker b/external/coi-serviceworker new file mode 160000 index 0000000..7b1d2a0 --- /dev/null +++ b/external/coi-serviceworker @@ -0,0 +1 @@ +Subproject commit 7b1d2a092d0d2dd2b7270b6f12f13605de26f214