From 886500ad8e2ba8a9b8380ebdbf889bfc1c8758cc Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 16 Feb 2026 13:37:53 +0100 Subject: [PATCH] Hide native menu bar and remove legacy root artifacts (v4.0.8) --- .gitignore | 5 +- README.md | 1 - installer.iss | 70 ---------------------------- server_files/version.json | 5 -- typescript-version/package-lock.json | 4 +- typescript-version/package.json | 2 +- typescript-version/src/index.html | 4 +- typescript-version/src/main.ts | 11 ++++- 8 files changed, 18 insertions(+), 84 deletions(-) delete mode 100644 installer.iss delete mode 100644 server_files/version.json diff --git a/.gitignore b/.gitignore index e9397ee..3ac373e 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,7 @@ docs/.astro/ # Executables Twitch_VOD_Manager.exe -server_files/*.exe + +# Legacy artifacts (not used by TypeScript app) +server_files/ +installer.iss diff --git a/README.md b/README.md index 9ea4aa3..d2de6b7 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,6 @@ Output artifacts are generated in `typescript-version/release/`. - `typescript-version/` - Electron app source and build config - `docs/` - Astro + MDX documentation site -- `server_files/` - legacy release metadata files ## Auto-Update Notes diff --git a/installer.iss b/installer.iss deleted file mode 100644 index 20708c7..0000000 --- a/installer.iss +++ /dev/null @@ -1,70 +0,0 @@ -; Inno Setup Script for Twitch VOD Manager -; Version 3.3.5 - -#define MyAppName "Twitch VOD Manager" -#define MyAppVersion "3.5.3" -#define MyAppPublisher "Twitch VOD Manager" -#define MyAppExeName "Twitch_VOD_Manager.exe" - -[Setup] -AppId={{8A7B9C0D-1E2F-3A4B-5C6D-7E8F9A0B1C2D} -AppName={#MyAppName} -AppVersion={#MyAppVersion} -AppPublisher={#MyAppPublisher} -DefaultDirName={autopf}\{#MyAppName} -DefaultGroupName={#MyAppName} -DisableProgramGroupPage=yes -OutputDir=installer_output -OutputBaseFilename=Twitch_VOD_Manager_Setup_{#MyAppVersion} -Compression=lzma2/ultra64 -SolidCompression=yes -WizardStyle=modern -PrivilegesRequired=admin - -[Languages] -Name: "german"; MessagesFile: "compiler:Languages\German.isl" -Name: "english"; MessagesFile: "compiler:Default.isl" - -[Tasks] -Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked - -[Files] -Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion - -[Icons] -Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" -Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" -Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon - -[Run] -; Bei normaler Installation: Checkbox "Programm starten" -Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runasoriginaluser - -[Code] -procedure CurStepChanged(CurStep: TSetupStep); -var - DataDir: String; - TempDir: String; - ResultCode: Integer; -begin - if CurStep = ssPostInstall then - begin - // Erstelle ProgramData Ordner fuer Settings - DataDir := ExpandConstant('{commonappdata}\Twitch_VOD_Manager'); - if not DirExists(DataDir) then - CreateDir(DataDir); - - // Bei Silent Install: Alte _MEI Ordner loeschen und App starten - if WizardSilent then - begin - Sleep(5000); // 5 Sekunden warten bis alte Prozesse beendet - - // Alte PyInstaller _MEI Ordner loeschen - TempDir := ExpandConstant('{tmp}\..'); - Exec('cmd.exe', '/c "for /d %i in ("' + TempDir + '\_MEI*") do rd /s /q "%i"" 2>nul', '', SW_HIDE, ewWaitUntilTerminated, ResultCode); - - Sleep(1000); // Kurz warten nach Cleanup - Exec(ExpandConstant('{app}\{#MyAppExeName}'), '', '', SW_SHOW, ewNoWait, ResultCode); - end; - end; -end; diff --git a/server_files/version.json b/server_files/version.json deleted file mode 100644 index 64d5ee2..0000000 --- a/server_files/version.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "3.5.3", - "download_url": "http://24-music.de/Twitch_VOD_Manager_Setup.exe", - "changelog": "Silent Update (kein CMD-Fenster)" -} diff --git a/typescript-version/package-lock.json b/typescript-version/package-lock.json index 7563854..548ee06 100644 --- a/typescript-version/package-lock.json +++ b/typescript-version/package-lock.json @@ -1,12 +1,12 @@ { "name": "twitch-vod-manager", - "version": "4.0.7", + "version": "4.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "twitch-vod-manager", - "version": "4.0.7", + "version": "4.0.8", "license": "MIT", "dependencies": { "axios": "^1.6.0", diff --git a/typescript-version/package.json b/typescript-version/package.json index ef9bfd1..00d651f 100644 --- a/typescript-version/package.json +++ b/typescript-version/package.json @@ -1,6 +1,6 @@ { "name": "twitch-vod-manager", - "version": "4.0.7", + "version": "4.0.8", "description": "Twitch VOD Manager - Download Twitch VODs easily", "main": "dist/main.js", "author": "xRangerDE", diff --git a/typescript-version/src/index.html b/typescript-version/src/index.html index ad1a32f..61cd287 100644 --- a/typescript-version/src/index.html +++ b/typescript-version/src/index.html @@ -428,7 +428,7 @@

Updates

-

Version: v4.0.7

+

Version: v4.0.8

@@ -460,7 +460,7 @@
Nicht verbunden - v4.0.7 + v4.0.8 diff --git a/typescript-version/src/main.ts b/typescript-version/src/main.ts index ff31263..26710da 100644 --- a/typescript-version/src/main.ts +++ b/typescript-version/src/main.ts @@ -1,4 +1,4 @@ -import { app, BrowserWindow, ipcMain, dialog, shell } from 'electron'; +import { app, BrowserWindow, ipcMain, dialog, shell, nativeTheme } from 'electron'; import * as path from 'path'; import * as fs from 'fs'; import { spawn, ChildProcess, execSync, exec, spawnSync } from 'child_process'; @@ -8,7 +8,7 @@ import { autoUpdater } from 'electron-updater'; // ========================================== // CONFIG & CONSTANTS // ========================================== -const APP_VERSION = '4.0.7'; +const APP_VERSION = '4.0.8'; const UPDATE_CHECK_URL = 'http://24-music.de/version.json'; // Paths @@ -1720,6 +1720,8 @@ async function processQueue(): Promise { // WINDOW CREATION // ========================================== function createWindow(): void { + nativeTheme.themeSource = 'dark'; + mainWindow = new BrowserWindow({ width: 1400, height: 900, @@ -1727,6 +1729,7 @@ function createWindow(): void { minHeight: 700, title: `Twitch VOD Manager [v${APP_VERSION}]`, backgroundColor: '#0e0e10', + autoHideMenuBar: true, webPreferences: { nodeIntegration: false, contextIsolation: true, @@ -1734,6 +1737,10 @@ function createWindow(): void { } }); + if (process.platform !== 'darwin') { + mainWindow.removeMenu(); + } + mainWindow.loadFile(path.join(__dirname, '../src/index.html')); mainWindow.on('closed', () => {