-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
133 additions
and
10 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
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,6 @@ | ||
cd .. | ||
call neu.cmd create myapp | ||
mkdir bin | ||
move myapp\bin\*.* bin | ||
rmdir /S /Q myapp | ||
cd desktop-app |
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,3 @@ | ||
cd .. | ||
call neu.cmd run | ||
cd desktop-app |
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,11 @@ | ||
cd .. | ||
del QC.exe | ||
del QC_Linux_MacOS.zip | ||
call neu.cmd build --release | ||
cd desktop-app | ||
"C:\Program Files (x86)\NSIS\makensis.exe" Launcher.nsi | ||
move QC.exe .. | ||
cd .. | ||
move .\dist\QC-release.zip QC_Linux_MacOS.zip | ||
rmdir /S /Q dist | ||
cd desktop-app |
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,4 @@ | ||
cd .. | ||
rmdir /S /Q bin | ||
rmdir /S /Q .tmp | ||
cd desktop-app |
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,15 @@ | ||
# How to build a desktop app of QC | ||
|
||
QC can be used as a web service. | ||
To use the service just go to | ||
|
||
**[a-herzog.github.io/QC](https://a-herzog.github.io/QC/)** | ||
|
||
QC can also be built to a exe file. Neutralinojs is used for building the standalone app. | ||
Follow these steps to build the stand alone app: | ||
|
||
1. Install [NSIS](nsis.sourceforge.net/) | ||
2. Install Neutralinojs: `npm install -g @neutralinojs/neu` | ||
2. Run `0_Prepare.bat` to add the Neutralinojs files to the QC folder. | ||
3. Run `1_Test.bat` to test the standalone app or `2_Build.bat` to build the app. The exe file will appear in the root folder (one level up). | ||
4. Run `3_Clean.bat` to delete the Neutralinojs files created in step 2. |
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,39 @@ | ||
!define PrgName "Statistical quality control" | ||
!define PrgTempPathName "Statistical quality control" | ||
!define PrgFileName "QC" | ||
!define PrgIcon "..\docs\favicon.ico" | ||
!define Copyright "Alexander Herzog" | ||
|
||
Name "${PrgName}" | ||
Caption "${PrgName}" | ||
Icon "${PrgIcon}" | ||
OutFile "${PrgFileName}.exe" | ||
|
||
VIProductVersion "1.0.0.0" | ||
VIAddVersionKey "ProductName" "${PrgName}" | ||
VIAddVersionKey "FileDescription" "${PrgName}" | ||
VIAddVersionKey "LegalCopyright" "${Copyright}" | ||
VIAddVersionKey "CompanyName" "${Copyright}" | ||
VIAddVersionKey "FileVersion" "1.0" | ||
VIAddVersionKey "InternalName" "${PrgName}" | ||
|
||
ManifestDPIAware true | ||
|
||
SilentInstall silent | ||
AutoCloseWindow true | ||
ShowInstDetails nevershow | ||
;ShowInstDetails show | ||
|
||
RequestExecutionLevel user | ||
|
||
Section "" | ||
SetOutPath "$TEMP\${PrgTempPathName}" | ||
|
||
File "..\dist\QC\QC-win_x64.exe" | ||
File "..\dist\QC\resources.neu" | ||
; File "..\dist\QC\WebView2Loader.dll" | ||
|
||
ExecWait "$TEMP\${PrgTempPathName}\QC-win_x64.exe" | ||
|
||
RmDir /r "$TEMP\${PrgTempPathName}" | ||
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,49 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/neutralinojs/neutralinojs/main/schemas/neutralino.config.schema.json", | ||
"applicationId": "QC", | ||
"version": "2.0.0", | ||
"defaultMode": "window", | ||
"port": 0, | ||
"documentRoot": "/docs/", | ||
"url": "/", | ||
"enableServer": true, | ||
"enableNativeAPI": true, | ||
"tokenSecurity": "one-time", | ||
"logging": { | ||
"enabled": false, | ||
"writeToLogFile": false | ||
}, | ||
"nativeAllowList": [ | ||
"app.*", | ||
"os.*", | ||
"window.*", | ||
"debug.log" | ||
], | ||
"modes": { | ||
"window": { | ||
"title": "Statistical quality control", | ||
"width": 1440, | ||
"height": 900, | ||
"minWidth": 1024, | ||
"minHeight": 768, | ||
"center": true, | ||
"fullScreen": false, | ||
"alwaysOnTop": false, | ||
"icon": "/docs/favicon.ico", | ||
"enableInspector": false, | ||
"borderless": false, | ||
"maximize": false, | ||
"hidden": false, | ||
"resizable": true, | ||
"exitProcessOnClose": false, | ||
"useSavedState": false | ||
} | ||
}, | ||
"cli": { | ||
"binaryName": "QC", | ||
"resourcesPath": "/docs/", | ||
"clientLibrary": "docs/libs/neutralino.js", | ||
"binaryVersion": "5.0.0", | ||
"clientVersion": "5.0.1" | ||
} | ||
} |