aboutsummaryrefslogtreecommitdiffstats
path: root/YetiHack/os
diff options
context:
space:
mode:
authorRay Hogenson <rayhogenson@gmail.com>2012-01-10 15:24:39 -0900
committerRay Hogenson <rayhogenson@gmail.com>2012-01-10 15:24:39 -0900
commitc1d1a4cfb55e87fb4db68980b3af9c31fde363a9 (patch)
tree2d0f92a791c1151a9683788b808dd6eaf4857c2f /YetiHack/os
parentae0551652fa132bb512638433189c1290933164e (diff)
parent4e87a290412cea63f548760de6f4a91b1d1ba352 (diff)
downloadyetihack-c1d1a4cfb55e87fb4db68980b3af9c31fde363a9.tar.zst
Merge branch 'master' of github.com:rayhogenson/YetiHack
Diffstat (limited to 'YetiHack/os')
-rw-r--r--YetiHack/os/debian/deb/DEBIAN/control10
-rw-r--r--YetiHack/os/linux/Makefile22
-rw-r--r--YetiHack/os/windows/Makefile15
-rw-r--r--YetiHack/os/windows/install.nsi97
-rw-r--r--YetiHack/os/windows/yetihack-windows/pdcurses.dllbin0 -> 118784 bytes
-rwxr-xr-xYetiHack/os/windows/yetihack-windows/yetihack.exebin0 -> 1110779 bytes
6 files changed, 144 insertions, 0 deletions
diff --git a/YetiHack/os/debian/deb/DEBIAN/control b/YetiHack/os/debian/deb/DEBIAN/control
new file mode 100644
index 0000000..4a2c8c4
--- /dev/null
+++ b/YetiHack/os/debian/deb/DEBIAN/control
@@ -0,0 +1,10 @@
+Package: yetihack
+Version: 1
+Section: bin
+Architecture: i386
+Depends: libncurses5, libc6
+Maintainer: Ray Hogenson <rayhogenson@gmail.com>
+Description: This is yetihack
+ YetiHack is a text based game where you
+ run from yetis
+
diff --git a/YetiHack/os/linux/Makefile b/YetiHack/os/linux/Makefile
new file mode 100644
index 0000000..0a95d72
--- /dev/null
+++ b/YetiHack/os/linux/Makefile
@@ -0,0 +1,22 @@
+yetihack:
+ cd src && make
+
+package:
+ make clean
+ zip package/yetihack-source.zip ../YetiHack
+ make yetihack
+ strip src/yetihack
+ sudo chown root:root src/yetihack
+ dpkg-deb --build os/debian/deb package/yetihack.deb
+ cd package && sudo alien -r yetihack.deb
+ zip package/yetihack.zip src/yetihack
+
+install: yetihack
+ cp src/yetihack /usr/local/bin/
+
+clean:
+ -rm src/*.o
+ -rm src/yetihack
+ -rm os/package/yetihack.deb
+ -rm os/package/*.rpm
+
diff --git a/YetiHack/os/windows/Makefile b/YetiHack/os/windows/Makefile
new file mode 100644
index 0000000..d1e8745
--- /dev/null
+++ b/YetiHack/os/windows/Makefile
@@ -0,0 +1,15 @@
+yetihack.exe: ../YetiHack.cpp
+ i586-mingw32msvc-g++ src/YetiHack.cpp src/yeti.cpp -o yetihack.exe -lpdcurses
+ -rm os/windows/yetihack-windows/yetihack.exe
+ ln yetihack.exe yetihack-windows
+
+package: yetihack.exe
+ makensis install.nsi
+ zip yetihack-windows.zip yetihack-windows
+
+clean:
+ -rm yetihack.exe
+ -rm YetiHack_installer.exe
+ -rm yetihack-windows.zip
+ -rm yetihack-windows/yetihack.exe
+
diff --git a/YetiHack/os/windows/install.nsi b/YetiHack/os/windows/install.nsi
new file mode 100644
index 0000000..a53078e
--- /dev/null
+++ b/YetiHack/os/windows/install.nsi
@@ -0,0 +1,97 @@
+; example2.nsi
+;
+; This script is based on example1.nsi, but it remember the directory,
+; has uninstall support and (optionally) installs start menu shortcuts.
+;
+; It will install example2.nsi into a directory that the user selects,
+
+;--------------------------------
+
+; The name of the installer
+Name "YetiHack Installer"
+
+; The file to write
+OutFile "YetiHack_installer.exe"
+
+; The default installation directory
+InstallDir $PROGRAMFILES\YetiHack
+
+; Registry key to check for directory (so if you install again, it will
+; overwrite the old one automatically)
+InstallDirRegKey HKLM "Software\YetiHack" "Install_Dir"
+
+; Request application privileges for Windows Vista
+RequestExecutionLevel admin
+
+;--------------------------------
+
+; Pages
+
+Page components
+Page directory
+Page instfiles
+
+UninstPage uninstConfirm
+UninstPage instfiles
+
+;--------------------------------
+
+; The stuff to install
+Section "YetiHack"
+
+ SectionIn RO
+
+ SetOutPath $INSTDIR
+ File "/home/ray/Documents/programming/YetiHack/windows/yetihack.exe"
+ File "/usr/i586-mingw32msvc/bin/pdcurses.dll"
+
+ ; Write the installation path into the registry
+ WriteRegStr HKLM SOFTWARE\YetiHack "Install_Dir" "$INSTDIR"
+
+ ; Write the uninstall keys for Windows
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "YetiHack Uninstaller" "YetiHack"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "UninstallString" '"$INSTDIR\uninstall.exe"'
+ WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "NoModify" 1
+ WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "NoRepair" 1
+ WriteUninstaller "uninstall.exe"
+
+SectionEnd
+
+; Optional section (can be disabled by the user)
+Section "Start Menu Shortcuts"
+
+ CreateDirectory "$SMPROGRAMS\YetiHack"
+ CreateShortCut "$SMPROGRAMS\YetiHack\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
+ CreateShortCut "$SMPROGRAMS\YetiHack\YetiHack.lnk" "$INSTDIR\YetiHack.exe" "" "$INSTDIR\YetiHack.exe" 0
+
+SectionEnd
+
+Section "Desktop Shortcut"
+
+ CreateShortCut "$DESKTOP\YetiHack.lnk" "$INSTDIR\YetiHack.exe" "" "$INSTDIR\YetiHack.exe" 0
+
+SectionEnd
+
+;--------------------------------
+
+; Uninstaller
+
+Section "Uninstall"
+
+ ; Remove registry keys
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack"
+ DeleteRegKey HKLM SOFTWARE\YetiHack
+
+ ; Remove files and uninstaller
+ Delete $INSTDIR\*
+ Delete $INSTDIR\uninstall.exe
+
+ ; Remove shortcuts, if any
+ Delete "$SMPROGRAMS\YetiHack\*.*"
+ Delete "$DESKTOP\YetiHack.lnk"
+
+ ; Remove directories used
+ RMDir "$SMPROGRAMS\YetiHack"
+ RMDir "$INSTDIR"
+
+SectionEnd
diff --git a/YetiHack/os/windows/yetihack-windows/pdcurses.dll b/YetiHack/os/windows/yetihack-windows/pdcurses.dll
new file mode 100644
index 0000000..550c7a2
--- /dev/null
+++ b/YetiHack/os/windows/yetihack-windows/pdcurses.dll
Binary files differ
diff --git a/YetiHack/os/windows/yetihack-windows/yetihack.exe b/YetiHack/os/windows/yetihack-windows/yetihack.exe
new file mode 100755
index 0000000..58ec272
--- /dev/null
+++ b/YetiHack/os/windows/yetihack-windows/yetihack.exe
Binary files differ