Skip to content

Commit

Permalink
Add songless installer option to nsi and appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Mar 27, 2018
1 parent 27ac631 commit c34436c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ after_build:
- cmd: >-
"C:\Program Files (x86)\NSIS\makensis.exe" "C:\etterna\stepmania.nsi"
"C:\Program Files (x86)\NSIS\makensis.exe" /DSSongless "C:\etterna\stepmania.nsi"
notifications:
- provider: Email
Expand Down
8 changes: 7 additions & 1 deletion stepmania.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
!system "utils\upx Program\*.exe" ignore

Name "${PRODUCT_DISPLAY}"

!ifndef Songless
OutFile "${PRODUCT_DISPLAY}.exe"
!else
OutFile "${PRODUCT_DISPLAY}Songless.exe"
!endif

Caption "${PRODUCT_DISPLAY} | install"
UninstallCaption "${PRODUCT_DISPLAY} | uninstall"
Expand Down Expand Up @@ -406,8 +411,9 @@ Section "Main Section" SecMain
CreateDirectory "$INSTDIR\Songs"
SetOutPath "$INSTDIR\Songs"
;File "Songs\Instructions.txt"
!ifndef Songless
File /r /x CVS /x .svn "Songs\Etterna*"

!endif
; remove and install themes
RMDir /r "$INSTDIR\Themes\_fallback"
RMDir /r "$INSTDIR\Themes\_portKit-sm4"
Expand Down

0 comments on commit c34436c

Please sign in to comment.