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