-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
155 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
build/ | ||
.DS_Store | ||
node_modules/electron-builder | ||
node_modules/.bin/electron-builder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.3 | ||
1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> | ||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!--This Id value indicates the application supports Windows Vista functionality --> | ||
<!-- supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/ --> | ||
<!--This Id value indicates the application supports Windows 7 functionality--> | ||
<!-- supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" --/> | ||
<!--This Id value indicates the application supports Windows 8 functionality--> | ||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> | ||
<!--This Id value indicates the application supports Windows 8.1 functionality--> | ||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> | ||
</application> | ||
</compatibility> | ||
|
||
<assemblyIdentity | ||
type="win32" | ||
name="net.lowreal.Chemr" | ||
version="1.0.0.0" | ||
/> | ||
|
||
|
||
<asmv3:application> | ||
<asmv3:windowsSettings | ||
xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> | ||
<dpiAware>true</dpiAware> | ||
</asmv3:windowsSettings> | ||
</asmv3:application> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
!define APP_NAME "<%= name %>" | ||
!define APP_DIR "${APP_NAME}" | ||
|
||
Name "${APP_NAME}" | ||
|
||
!include "MUI2.nsh" | ||
!define MUI_ICON "icon.ico" | ||
|
||
!addplugindir . | ||
!include "nsProcess.nsh" | ||
|
||
!include "FileFunc.nsh" | ||
|
||
# define the resulting installer's name | ||
OutFile "<%= out %>\${APP_NAME} Setup.exe" | ||
|
||
# set the installation directory | ||
InstallDir "$PROGRAMFILES\${APP_NAME}\" | ||
|
||
# app dialogs | ||
!insertmacro MUI_PAGE_WELCOME | ||
!insertmacro MUI_PAGE_INSTFILES | ||
|
||
!define MUI_FINISHPAGE_RUN_TEXT "Start ${APP_NAME}" | ||
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_NAME}.exe" | ||
|
||
!insertmacro MUI_PAGE_FINISH | ||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
|
||
# default section start | ||
Section | ||
SetShellVarContext all | ||
|
||
# delete the installed files | ||
RMDir /r $INSTDIR | ||
|
||
# define the path to which the installer should install | ||
SetOutPath $INSTDIR | ||
|
||
# specify the files to go in the output path | ||
File /r "<%= appPath %>\*" | ||
|
||
# specify icon to go in the output path | ||
File "icon.ico" | ||
|
||
# create the uninstaller | ||
WriteUninstaller "$INSTDIR\Uninstall ${APP_NAME}.exe" | ||
|
||
# create shortcuts in the start menu and on the desktop | ||
CreateDirectory "$SMPROGRAMS\${APP_DIR}" | ||
CreateShortCut "$SMPROGRAMS\${APP_DIR}\${APP_NAME}.lnk" "$INSTDIR\${APP_NAME}.exe" | ||
CreateShortCut "$SMPROGRAMS\${APP_DIR}\Uninstall ${APP_NAME}.lnk" "$INSTDIR\Uninstall ${APP_NAME}.exe" | ||
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_NAME}.exe" | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"DisplayName" "${APP_NAME}" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"UninstallString" "$INSTDIR\Uninstall ${APP_NAME}.exe" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"DisplayIcon" "$INSTDIR\icon.ico" | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"Publisher" "${APP_NAME}" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"InstallLocation" "$INSTDIR" | ||
|
||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"VersionMajor" 1 | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"VersionMinor" 0 | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" \ | ||
"Version" 0 | ||
SectionEnd | ||
|
||
# create a section to define what the uninstaller does | ||
Section "Uninstall" | ||
|
||
${nsProcess::FindProcess} "${APP_NAME}.exe" $R0 | ||
|
||
${If} $R0 == 0 | ||
DetailPrint "${APP_NAME} is running. Closing it down..." | ||
${nsProcess::KillProcess} "${APP_NAME}.exe" $R0 | ||
DetailPrint "Waiting for ${APP_NAME} to close." | ||
Sleep 2000 | ||
${EndIf} | ||
|
||
${nsProcess::Unload} | ||
|
||
SetShellVarContext all | ||
|
||
# delete the installed files | ||
RMDir /r $INSTDIR | ||
|
||
# delete the shortcuts | ||
delete "$SMPROGRAMS\${APP_DIR}\${APP_NAME}.lnk" | ||
delete "$SMPROGRAMS\${APP_DIR}\Uninstall ${APP_NAME}.lnk" | ||
rmDir "$SMPROGRAMS\${APP_DIR}" | ||
delete "$DESKTOP\${APP_NAME}.lnk" | ||
|
||
|
||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" | ||
SectionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters