X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=win32%2Fmkpackage.sh.in;h=4a760d8b45de33a3b54756c6dc950446d2b1e151;hp=2051a22c1218491f2b6129f846301e3abda4425f;hb=6c47a7028f7c72fabc40f417aa41111c28de8a84;hpb=6a5d12788f2778a26223de690d34b00ac16a6ec3 diff --git a/win32/mkpackage.sh.in b/win32/mkpackage.sh.in index 2051a22..4a760d8 100644 --- a/win32/mkpackage.sh.in +++ b/win32/mkpackage.sh.in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Yoink @@ -6,458 +6,53 @@ # This was blatantly yoinked and adapted from the Wormux Project. # +# Paths +SCRIPT="$PWD/yoink.nsi" +BUILD_DIR="$PWD/build" +ROOT_DIR="$PWD/.." + # Programs MAKENSIS="@MAKENSIS@" STRIP="@STRIP@" - -# Anchor paths -ROOT_DIR="$PWD/.." - -# Stuff -COMPRESSION="/solid lzma" -DEST="tmp-yoink-win32" -SCRIPT="$DEST/yoink.nsi" -OUT_FILE=${1:-yoinksetup-@VERSION@.exe} +UNIX2DOS="$ROOT_DIR/tools/unix2dos" # DLL dependencies -DLLS="SDL SDL_image zlib1 libpng12-0 OpenAL32 libvorbis-0 libogg-0" -DLLS="$DLLS libvorbisfile-3 lua51" +DLLS="libogg-0 libpng14-14 libvorbis-0 libvorbisfile-3 lua51 OpenAL32 SDL zlib1" # Prepare -${STRIP:-strip} "$ROOT_DIR/src/yoink.exe" -rm -rf "$DEST" -mkdir -p "$DEST" - - -# -# Set installer definitions and strings. -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -HKLM_PATH='SOFTWARE\Games\Yoink' -UNINSTALL_KEY='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Yoink' -APP_PATHS_KEY='SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\yoink.exe' -START_RUN_KEY='SOFTWARE\Microsoft\Windows\CurrentVersion\Run' - - -PROMPT1="Not enough rights to install, aborting. :-(" -PROMPT2="Unable to uninstall the currently installed version of Yoink. The new version will be installed without removing the currently installed version." - -SEC_INSTALL="Install Yoink!" -SEC_INSTALL_DESC="Installs Yoink to your computer." -SEC_UNINSTALL="Uninstall previous version." -SEC_SHORTCUTS="Install Shortcuts." -SEC_SHORTCUTS_DESC="Install shortcuts at various locations." -SEC_SHORTCUT1="Place a shortcut on the desktop." -SEC_SHORTCUT2="Place a shortcut in the start menu." -SEC_SHORTCUT3="Place an uninstall shortcut in the start menu." - -WEBSITE_LINK="Visit the Yoink website" - - -# -# Begin output of installer script. -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -cat > "$SCRIPT" <