Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-pro committed Jan 10, 2024
1 parent 94dc34d commit 812a61b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**/target
**/*.rs.bk
.idea/

*.exe
25 changes: 25 additions & 0 deletions installers/windows.nsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
OutFile "SsbInstaller.exe"

InstallDir "$LocalAppdata\solar-screen-brightness"

!define SHORT_CUT "$SMPROGRAMS\Solar Screen Brightness.lnk"
!define SHORT_CUT_UNINSTALL "$SMPROGRAMS\Uninstall Solar Screen Brightness.lnk"
!define SHORT_CUT_START_UP "$SMSTARTUP\Solar Screen Brightness (Minimised).lnk"

Section
SetOutPath "$INSTDIR"
File "..\target\release\ssb.exe"
File "..\target\release\ssb-cli.exe"
WriteUninstaller "$INSTDIR\uninstall.exe"
CreateShortcut "${SHORT_CUT}" "$INSTDIR\ssb.exe"
CreateShortcut "${SHORT_CUT_UNINSTALL}" "$INSTDIR\uninstall.exe"
CreateShortcut "${SHORT_CUT_START_UP}" "$INSTDIR\ssb.exe" "--minimised"
SectionEnd

Section "uninstall"
Delete "${SHORT_CUT}"
Delete "${SHORT_CUT_UNINSTALL}"
Delete "${SHORT_CUT_START_UP}"
RMDir /r "$INSTDIR"
SectionEnd

0 comments on commit 812a61b

Please sign in to comment.