Add installer GUI and file system access feature

This commit introduces a new Tkinter-based GUI installer script (`installer/main.py`) that manages file extraction and shortcut creation. Additionally, a new file system access feature was added to the `ToolboxWindow` class, allowing users to open directories with platform-specific commands. Improvements also include platform-specific adjustments for Windows executables in the CMake configuration.
This commit is contained in:
2024-12-09 11:08:40 +01:00
parent 4fa4c6df6c
commit 543e2bae9c
10 changed files with 269 additions and 19 deletions

View File

@@ -147,7 +147,7 @@
<body>
<div class="header">
<h1>Toolbox</h1>
<button id="options-button" class="options-button">Optionen</button>
<button onclick="openFileSystem()" id="options-button" class="options-button">Ordner</button>
</div>
<div class="main" id="toolbox">
<!-- Tool Cards werden hier dynamisch geladen -->
@@ -162,7 +162,7 @@
if (toolCard) {
const toolId = toolCard.getAttribute('data-tool-id');
if (!button.disabled) {
if (sessionStorage.getItem(`toolButtonDisabled_${toolId}`) !== 'true') {
console.log(`Disabling button for tool ID: ${toolId}`);
saucer.exposed.run_lua(parseInt(toolId, 10));
@@ -183,6 +183,10 @@
saucer.exposed.debug_print();
}
function openFileSystem() {
saucer.exposed.open_file_system();
}
function enableButtonByToolId(toolId) {
saucer.exposed.debug_print();
// Finden Sie den Button mit dem entsprechenden data-tool-id