diff --git a/.gitignore b/.gitignore index 21694d5..04236a4 100644 --- a/.gitignore +++ b/.gitignore @@ -261,6 +261,8 @@ typings/ # Electron-Forge out/ +output/ + blender/ logs/ diff --git a/README.md b/README.md index bb1993d..fae4774 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,21 @@ A 3D Sticks Exporter for EdgeTX/OpenTX logs. Setup: ------ -- Lade [Blender Portable](https://www.blender.org/download) Version herunter und Entpacke es mit dem Namen `blender` in den Projektordner. +- Lade [Blender Portable](https://www.blender.org/download) Version herunter und Entpacke es mit dem Namen `blender` in den Ordner `/src/assets`. +Wenn dieser nicht existiert, erstellen sie den Ordner. +- Kopieren sie die Dateien im Ordner `/src/assets` in den Ordner `%appdata%/stickexportertx/assets`. - Starte eine Console in dem Projektordner und führe den Befehl `npm install` aus um alle notwendingen packages zu installieren. Start: ------ -Um das Programm zu starten, führe einfach den Befehl `npm start` im Projektordner aus. +Kopieren sie die Dateien im Ordner `/src/assets` in den Ordner `%appdata%/stickexportertx/assets`. +Um das Programm zu starten, führe den Befehl `npm start` im Projektordner aus. + +Build: +------ +(Noch Nicht Funktionsfähig) +Um das Programm zu Builden, führe den Befehl `npm run package` im Projektordner aus. +Um es dann in einen EXE-Installer zu laden, öffne die Datei `installer-builder.iss` mit dem Programm [Inno Setup Compiler](https://jrsoftware.org/isdl.php#stable) und Führe das Script aus. Der Fertige installer sollte nach dem Compilen im Projektordner/output liegen. + Copyright © 2022 Lino Schmidt. All rights reserved. \ No newline at end of file diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..d72d1ca Binary files /dev/null and b/icon.ico differ diff --git a/installer-builder.iss b/installer-builder.iss new file mode 100644 index 0000000..768a54d --- /dev/null +++ b/installer-builder.iss @@ -0,0 +1,58 @@ +; 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.5" +#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=D:\Git\stickexportertx\output +OutputBaseFilename=stickexportertx-setup +SetupIconFile=D:\Git\stickexportertx\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: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\locales\*"; DestDir: "{app}\locales"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\swiftshader\*"; DestDir: "{app}\swiftshader"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\*"; DestDir: "{app}"; Flags: ignoreversion +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\resources\app\package.json"; DestDir: "{app}\resources\app"; Flags: ignoreversion +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\resources\app\src\*"; DestDir: "{app}\resources\app\src"; Flags: ignoreversion +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\resources\app\src\js\*"; DestDir: "{app}\resources\app\src\js"; Flags: ignoreversion +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\resources\app\src\css\*"; DestDir: "{app}\resources\app\src\css"; Flags: ignoreversion +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\resources\app\node_modules\*"; DestDir: "{app}\resources\app\node_modules"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "D:\Git\stickexportertx\out\stickexportertx-win32-x64\resources\app\src\assets\*"; DestDir: "{userappdata}\stickexportertx\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 +