mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-20 17:44:29 +01:00
Better and easier build software
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# MIT License
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 [Lino Schmidt](https://github.com/LinoSchmidt)
|
||||
Copyright (c) 2022 Lino Schmidt
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -10,11 +10,9 @@ A 3D Sticks Exporter for EdgeTX/OpenTX logs.
|
||||
To test the program, execute the command `npm start` in the project folder.
|
||||
|
||||
## Build:
|
||||
|
||||
### Windows:
|
||||
To build the program, execute the command `npm run package-win` in the project folder.
|
||||
After that, open the file `installer-builder.iss` with the program [Inno Setup Compiler](https://jrsoftware.org/isdl.php#stable) and compile it.
|
||||
The finished installer should be inside `<Project Folder>/output`.
|
||||
To build the program, execute the command `npm run build` in the project folder.
|
||||
The finished installer should be inside `<Project Folder>/dist`.
|
||||
|
||||
## Licence:
|
||||
This project is released under the MIT license, for more information, check the [LICENSE](LICENSE.md) file.
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
; Script generated by the Inno Setup Script Wizard.
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "StickExporterTX"
|
||||
#define MyAppVersion "0.6.2"
|
||||
#define MyAppPublisher "Lino Schmidt"
|
||||
#define MyAppURL "https://stickexportertx.lino3d.de"
|
||||
#define MyAppExeName "stickexportertx.exe"
|
||||
|
||||
[Setup]
|
||||
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||
AppId={{11FB4A05-6479-45DE-8B5C-436F0E63B2D3}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppVersion}
|
||||
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
DefaultDirName={autopf}\{#MyAppName}
|
||||
DisableProgramGroupPage=yes
|
||||
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
||||
;PrivilegesRequired=lowest
|
||||
OutputDir=output
|
||||
OutputBaseFilename=stickexportertx-setup
|
||||
SetupIconFile=icon.ico
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
Source: "release-builds\stickexportertx-win32-ia32\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "assets\*"; DestDir: "{app}\assets"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||
|
||||
[Icons]
|
||||
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
2508
package-lock.json
generated
2508
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
35
package.json
35
package.json
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"version": "0.6.2",
|
||||
"name": "stickexportertx",
|
||||
"productName": "StickExporterTX",
|
||||
"version": "0.6.2",
|
||||
"description": "A 3D Stick Exporter for EdgeTX/OpenTX Logs.",
|
||||
"description": "3D stick exporter for EdgeTX/OpenTX logs",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"start": "electron-forge start",
|
||||
@@ -10,14 +10,14 @@
|
||||
"make": "electron-forge make",
|
||||
"publish": "electron-forge publish",
|
||||
"lint": "echo \"No linting configured\"",
|
||||
"package-win": "electron-packager . stickexportertx --overwrite --asar=true --platform=win32 --arch=ia32 --icon=icon.ico --prune=true --out=release-builds --version-string.CompanyName=\"Lino Schmidt\" --version-string.FileDescription=\"3D Stick Exporter for EdgeTX/OpenTX Logs\" --version-string.ProductName=StickExporterTX",
|
||||
"package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=icon.icns --prune=true --out=release-builds",
|
||||
"build": "electron-builder",
|
||||
"package-lx": "electron-packager . stickexportertx --overwrite --asar=true --platform=linux --arch=x64 --icon=icon.png --prune=true --out=release-builds"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": {
|
||||
"name": "Lino Schmidt",
|
||||
"email": "linoschmidt@lino3d.de"
|
||||
"email": "linoschmidt@lino3d.de",
|
||||
"url": "https://link.lino3d.de"
|
||||
},
|
||||
"license": "MIT",
|
||||
"config": {
|
||||
@@ -60,6 +60,29 @@
|
||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.63",
|
||||
"@electron-forge/maker-zip": "^6.0.0-beta.63",
|
||||
"electron": "18.1.0",
|
||||
"electron-packager": "^15.5.1"
|
||||
"electron-builder": "^23.0.3"
|
||||
},
|
||||
"build": {
|
||||
"appId": "de.lino3d.stickexportertx",
|
||||
"productName": "StickExporterTX",
|
||||
"files": [
|
||||
"src/**/*",
|
||||
"node_modules/**/*",
|
||||
"package.json"
|
||||
],
|
||||
"extraFiles": [
|
||||
"assets/**/*"
|
||||
],
|
||||
"win": {
|
||||
"icon": "icon.png",
|
||||
"target": [
|
||||
"nsis"
|
||||
]
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"allowToChangeInstallationDirectory": true,
|
||||
"license": "LICENSE"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user