web version url fix
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
3
Makefile
3
Makefile
@@ -46,7 +46,7 @@ web: love
|
||||
@echo "==> Patching player.js"
|
||||
sed -i.bak "s|uri = 'nogame\.love'|uri = '$(LOVE_NAME)'|g" $(WEB_DIR)/player.js && rm $(WEB_DIR)/player.js.bak
|
||||
@echo "==> Patching index.html"
|
||||
sed -i.bak 's|<base href="/play/">|<base href="/play/$(PROJECT)/$(VERSION)/content/play">|g' $(WEB_DIR)/index.html && rm $(WEB_DIR)/index.html.bak
|
||||
sed -i.bak 's|<base href="/play/">|<base href="/file/$(PROJECT)-$(VERSION)">|g' $(WEB_DIR)/index.html && rm $(WEB_DIR)/index.html.bak
|
||||
@echo "==> Web build ready in $(WEB_DIR)"
|
||||
|
||||
export: love web
|
||||
@@ -97,6 +97,5 @@ ci-upload:
|
||||
ci-update:
|
||||
@VERSION=$$(cat $(VERSION_FILE)); \
|
||||
curl "$(UPDATE_SERVER)/update?secret=$(UPDATE_SECRET)&name=$(PROJECT)&platform=love&version=$$VERSION"; \
|
||||
curl "$(UPDATE_SERVER)/update?secret=$(UPDATE_SECRET)&name=$(PROJECT)&platform=love-web&version=$$VERSION"
|
||||
|
||||
.PHONY: all build love web export watch clean ci-version ci-export ci-upload ci-update
|
||||
Reference in New Issue
Block a user