diff --git a/src/scripts/pack-jsbox-game.sh b/src/scripts/pack-jsbox-game.sh index fd62b1c..f4902c9 100755 --- a/src/scripts/pack-jsbox-game.sh +++ b/src/scripts/pack-jsbox-game.sh @@ -31,18 +31,18 @@ mkdir -p "${GAME_ROOT_PATH}/.jsdos" stat "${GAME_ROOT_PATH}/.jsdos/dosbox.conf" if [ "$?" -gt "0" ];then - wget "https://www.ngtech.co.il/static/js-dos/dosbox.conf.default" -O "${GAME_ROOT_PATH}/.jsdos/dosbox.conf" + cp -vf "${GAMES_MENU_PATH}/templates/dosbox.conf.default" "${GAME_ROOT_PATH}/.jsdos/dosbox.conf" fi stat "${GAME_ROOT_PATH}/.jsdos/jsdos.json" if [ "$?" -gt "0" ];then - wget "https://www.ngtech.co.il/static/js-dos/jsdos.json.default" -O "${GAME_ROOT_PATH}/.jsdos/jsdos.json" + cp -vf "${GAMES_MENU_PATH}/templates/jsdos.json.default" "${GAME_ROOT_PATH}/.jsdos/jsdos.json" fi cd "${GAME_ROOT_PATH}/" && zip -r "${ZIP_PATH}/${GAME_NAME}.zip" "./" && cd - -wget "https://www.ngtech.co.il/static/js-dos/jsdos-game.html.template" -O "${GAMES_MENU_PATH}/${GAME_NAME}.html" +cp "${GAMES_MENU_PATH}/templates/jsdos-game.html.template" "${GAMES_MENU_PATH}/${GAME_NAME}.html" sed -i -e "s@###GAME_URL###@${GAMES_URL_ROOT}/${GAME_NAME}.zip@g" "${GAMES_MENU_PATH}/${GAME_NAME}.html" set +x diff --git a/dosbox.conf.default b/templates/dosbox.conf.default similarity index 100% rename from dosbox.conf.default rename to templates/dosbox.conf.default diff --git a/index.html.in b/templates/index.html.in similarity index 100% rename from index.html.in rename to templates/index.html.in diff --git a/jsdos-game.html.template b/templates/jsdos-game.html.template similarity index 100% rename from jsdos-game.html.template rename to templates/jsdos-game.html.template diff --git a/jsdos.json.default b/templates/jsdos.json.default similarity index 100% rename from jsdos.json.default rename to templates/jsdos.json.default