X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=make-win32-installer.sh.in;fp=make-win32-installer.sh.in;h=f88dd5ea51423072ef8ea9713f982832bad1b4cd;hp=0000000000000000000000000000000000000000;hb=6dd7ae54e742339cc49e640d1076a310a0f4eedd;hpb=6c5e094899f5443b19f46b34c18b9e3bcc1ca99b diff --git a/make-win32-installer.sh.in b/make-win32-installer.sh.in new file mode 100644 index 0000000..f88dd5e --- /dev/null +++ b/make-win32-installer.sh.in @@ -0,0 +1,469 @@ +#!/bin/bash + +# +# Yoink +# Run this script to create a win32 installer. +# This was blatantly yoinked and adapted from the Wormux Project. +# + +# Programs +MAKENSIS="@MAKENSIS@" +STRIP="@STRIP@" + +# Anchor paths +ROOT_DIR="$PWD" + +# Stuff +COMPRESSION="/solid lzma" +DEST="tmp-yoink-win32" +SCRIPT="$DEST/yoink.nsi" + +# DLL dependencies +DLLS="SDL SDL_image zlib1 libpng12-0 OpenAL32 libalut-0 libvorbis-0 libogg-0" +DLLS="$DLLS libvorbisfile-3" + +# 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" <