Add experimental windows installer
This nsis script should create a windows installer. Although the installer worked for the first tests you should handle it with care and consider it highly experimental
This commit is contained in:
parent
cd3a119eff
commit
43f118bd4e
14
windows-installer/README.md
Normal file
14
windows-installer/README.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Dino Windows Installer
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
To create the Dino windows installer you need this:
|
||||||
|
* nsis (e.g. `apt install nsis` on Debian)
|
||||||
|
* Dino compiled for windows in input directory
|
||||||
|
* logo.ico in input directory
|
||||||
|
* Download https://dino.im/img/logo.svg
|
||||||
|
* Convert it to ico (e.g. `onvert -background transparent -define 'icon:auto-resize=16,24,32,64' logo.svg logo.ico` (requires imagemagick)
|
||||||
|
|
||||||
|
## Create installer
|
||||||
|
|
||||||
|
Simply run `makensis dino.nsi`
|
52
windows-installer/dino.nsi
Normal file
52
windows-installer/dino.nsi
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
Unicode True
|
||||||
|
|
||||||
|
!define MUI_PRODUCT "Dino"
|
||||||
|
!define MUI_PRODUCT_NAME ${MUI_PRODUCT}
|
||||||
|
!define PRODUCT_WEBSITE "https://dino.im"
|
||||||
|
!define MUI_ICON "input/logo.ico"
|
||||||
|
!define ICON "input/logo.ico"
|
||||||
|
|
||||||
|
# define installer name
|
||||||
|
OutFile "dino-installer.exe"
|
||||||
|
|
||||||
|
BrandingText "Dino - Communication happyness"
|
||||||
|
|
||||||
|
# set install directory
|
||||||
|
InstallDir $PROGRAMFILES64\dino
|
||||||
|
|
||||||
|
# default section start
|
||||||
|
Section
|
||||||
|
|
||||||
|
# Install binary and DLLs
|
||||||
|
SetOutPath $INSTDIR\bin
|
||||||
|
File input/*.dll input/dino.exe
|
||||||
|
|
||||||
|
# Install the libs and shared files
|
||||||
|
SetOutPath $INSTDIR
|
||||||
|
File /r /x dino.exe /x plugins /x ./*.dll input/*
|
||||||
|
|
||||||
|
# Install the plugins
|
||||||
|
SetOutPath $INSTDIR\lib\dino\plugins
|
||||||
|
File input/plugins/*
|
||||||
|
|
||||||
|
# define uninstaller name
|
||||||
|
WriteUninstaller $INSTDIR\uninstaller.exe
|
||||||
|
|
||||||
|
# Create a shortcut for startmenu
|
||||||
|
CreateShortcut "$SMPROGRAMS\dino.lnk" "$INSTDIR\bin\dino.exe" "" "$INSTDIR\logo.ico"
|
||||||
|
|
||||||
|
# default section end
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
# Uninsaller section
|
||||||
|
Section "Uninstall"
|
||||||
|
|
||||||
|
# Always delete uninstaller first
|
||||||
|
Delete $INSTDIR\uninstaller.exe
|
||||||
|
|
||||||
|
# now delete installed file
|
||||||
|
Delete $INSTDIR\*
|
||||||
|
|
||||||
|
# Delete the directory
|
||||||
|
RMDir /r $INSTDIR
|
||||||
|
SectionEnd
|
BIN
windows-installer/input/logo.ico
Normal file
BIN
windows-installer/input/logo.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
1
windows-installer/input/logo.svg
Normal file
1
windows-installer/input/logo.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.6 KiB |
Loading…
Reference in a new issue