Windows build: Move NSIS installer script to this repo
parent
d62cc8d62c
commit
8a2ef69873
|
@ -45,20 +45,14 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Extract the .zip into folder
|
name: Extract the .zip into folder
|
||||||
run: 7z x etherpad-win.zip -oetherpad-lite-new
|
run: 7z x etherpad-win.zip -oetherpad-lite-new
|
||||||
-
|
|
||||||
name: Grab nsis config
|
|
||||||
run: git clone https://github.com/ether/etherpad_nsis.git
|
|
||||||
-
|
-
|
||||||
name: Create installer
|
name: Create installer
|
||||||
uses: joncloud/makensis-action@v3.6
|
uses: joncloud/makensis-action@v3.6
|
||||||
with:
|
with:
|
||||||
script-file: 'etherpad_nsis/etherpad.nsi'
|
script-file: 'src/bin/nsis/etherpad.nsi'
|
||||||
-
|
|
||||||
name: Check something..
|
|
||||||
run: ls etherpad_nsis
|
|
||||||
-
|
-
|
||||||
name: Archive production artifacts
|
name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: etherpad-server-windows.exe
|
name: etherpad-server-windows.exe
|
||||||
path: etherpad_nsis/etherpad-server-windows.exe
|
path: etherpad-server-windows.exe
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/etherpad-server-windows.exe
|
||||||
/etherpad-win.zip
|
/etherpad-win.zip
|
||||||
node_modules
|
node_modules
|
||||||
/settings.json
|
/settings.json
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
A simple NSIS script to Install Etherpad (Server) on Windows and start it.
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
1. i18n
|
||||||
|
1. Run as Service
|
||||||
|
1. Display messages during install
|
||||||
|
|
||||||
|
# License
|
||||||
|
Apache 2
|
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,48 @@
|
||||||
|
;Include Modern UI
|
||||||
|
!include "MUI2.nsh"
|
||||||
|
|
||||||
|
;--------------------------------
|
||||||
|
;Styling
|
||||||
|
!define MUI_ICON "brand.ico"
|
||||||
|
Icon "brand.ico"
|
||||||
|
BrandingText "Etherpad Foundation"
|
||||||
|
Name "Etherpad Server"
|
||||||
|
OutFile "..\..\..\etherpad-server-windows.exe"
|
||||||
|
|
||||||
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
|
||||||
|
Page directory
|
||||||
|
Page instfiles
|
||||||
|
|
||||||
|
; The default installation directory
|
||||||
|
InstallDir "$LocalAppData\Programs\Etherpad Foundation\Etherpad Server"
|
||||||
|
|
||||||
|
Section
|
||||||
|
SectionIn RO
|
||||||
|
|
||||||
|
; Set output path to the installation directory.
|
||||||
|
SetOutPath $INSTDIR
|
||||||
|
|
||||||
|
; Put files there
|
||||||
|
File /r "..\..\..\etherpad-lite-new\*"
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section
|
||||||
|
CreateDirectory "$SMPROGRAMS\Etherpad Foundation"
|
||||||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Etherpad Server.lnk" "$INSTDIR\start.bat" "brand.ico" "Etherpad Server"
|
||||||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Etherpad.lnk" "http://127.0.0.1:9001" "brand.ico" "Etherpad"
|
||||||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Etherpad Admin.lnk" "http://127.0.0.1:9001/admin" "brand.ico" "Etherpad Admin"
|
||||||
|
CreateShortCut "$SMPROGRAMS\Etherpad Foundation\Uninstall Etherpad Server.lnk" "$INSTDIR\uninstall.exe"
|
||||||
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||||
|
Exec '$INSTDIR\start.bat'
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
UninstPage instfiles
|
||||||
|
|
||||||
|
Section Uninstall
|
||||||
|
Delete "$INSTDIR\*"
|
||||||
|
Delete "$INSTDIR\uninstall.exe"
|
||||||
|
RMDir "$INSTDIR"
|
||||||
|
SetAutoClose false
|
||||||
|
SectionEnd
|
Loading…
Reference in New Issue