5
This commit is contained in:
parent
b2af9b8e46
commit
43454be49e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user