Compare commits

...

3 Commits

Author SHA1 Message Date
Flavio Fois
654475d3ea feat: refactor MailViewer component path 2026-02-04 23:41:16 +01:00
Flavio Fois
3c24421c8c fix: update installer script to use ApplicationName variable for consistency 2026-02-04 23:32:12 +01:00
Flavio Fois
1e84320588 feat: update application versioning and setup configuration 2026-02-04 23:30:40 +01:00
6 changed files with 44 additions and 41 deletions

View File

@@ -3,85 +3,85 @@
// This file is automatically generated. DO NOT EDIT
export function CheckIsDefaultEMLHandler() {
return ObfuscatedCall(0, []);
return window['go']['main']['App']['CheckIsDefaultEMLHandler']();
}
export function GetConfig() {
return ObfuscatedCall(1, []);
return window['go']['main']['App']['GetConfig']();
}
export function GetImageViewerData() {
return ObfuscatedCall(2, []);
return window['go']['main']['App']['GetImageViewerData']();
}
export function GetMachineData() {
return ObfuscatedCall(3, []);
return window['go']['main']['App']['GetMachineData']();
}
export function GetPDFViewerData() {
return ObfuscatedCall(4, []);
return window['go']['main']['App']['GetPDFViewerData']();
}
export function GetStartupFile() {
return ObfuscatedCall(5, []);
return window['go']['main']['App']['GetStartupFile']();
}
export function GetViewerData() {
return ObfuscatedCall(6, []);
return window['go']['main']['App']['GetViewerData']();
}
export function IsDebuggerRunning() {
return ObfuscatedCall(7, []);
return window['go']['main']['App']['IsDebuggerRunning']();
}
export function OpenDefaultAppsSettings() {
return ObfuscatedCall(8, []);
return window['go']['main']['App']['OpenDefaultAppsSettings']();
}
export function OpenEMLWindow(arg1, arg2) {
return ObfuscatedCall(9, [arg1, arg2]);
return window['go']['main']['App']['OpenEMLWindow'](arg1, arg2);
}
export function OpenImage(arg1, arg2) {
return ObfuscatedCall(10, [arg1, arg2]);
return window['go']['main']['App']['OpenImage'](arg1, arg2);
}
export function OpenImageWindow(arg1, arg2) {
return ObfuscatedCall(11, [arg1, arg2]);
return window['go']['main']['App']['OpenImageWindow'](arg1, arg2);
}
export function OpenPDF(arg1, arg2) {
return ObfuscatedCall(12, [arg1, arg2]);
return window['go']['main']['App']['OpenPDF'](arg1, arg2);
}
export function OpenPDFWindow(arg1, arg2) {
return ObfuscatedCall(13, [arg1, arg2]);
return window['go']['main']['App']['OpenPDFWindow'](arg1, arg2);
}
export function QuitApp() {
return ObfuscatedCall(14, []);
return window['go']['main']['App']['QuitApp']();
}
export function ReadEML(arg1) {
return ObfuscatedCall(15, [arg1]);
return window['go']['main']['App']['ReadEML'](arg1);
}
export function ReadMSG(arg1, arg2) {
return ObfuscatedCall(16, [arg1, arg2]);
return window['go']['main']['App']['ReadMSG'](arg1, arg2);
}
export function ReadMSGOSS(arg1) {
return ObfuscatedCall(17, [arg1]);
return window['go']['main']['App']['ReadMSGOSS'](arg1);
}
export function ReadPEC(arg1) {
return ObfuscatedCall(18, [arg1]);
return window['go']['main']['App']['ReadPEC'](arg1);
}
export function SaveConfig(arg1) {
return ObfuscatedCall(19, [arg1]);
return window['go']['main']['App']['SaveConfig'](arg1);
}
export function ShowOpenFileDialog() {
return ObfuscatedCall(20, []);
return window['go']['main']['App']['ShowOpenFileDialog']();
}

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import MailViewer from "$lib/components/dashboard/MailViewer.svelte";
import MailViewer from "$lib/components/MailViewer.svelte";
import { mailState } from "$lib/stores/mail-state.svelte";
let { data } = $props();

View File

@@ -2,7 +2,6 @@ import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
import { GetViewerData, GetStartupFile, ReadEML, ReadMSG } from '$lib/wailsjs/go/main/App';
import DOMPurify from 'dompurify';
import { settingsStore } from '$lib/stores/settings.svelte';
import type { internal } from '$lib/wailsjs/go/models';
export const load: PageLoad = async () => {

View File

@@ -6,7 +6,7 @@
import { Label } from "$lib/components/ui/label";
import { Separator } from "$lib/components/ui/separator";
import { Switch } from "$lib/components/ui/switch";
import { ChevronLeft, Command, Option, Flame } from "@lucide/svelte";
import { ChevronLeft, Flame } from "@lucide/svelte";
import type { EMLy_GUI_Settings } from "$lib/types";
import { toast } from "svelte-sonner";
import { It, Us } from "svelte-flags";

View File

@@ -1,42 +1,46 @@
#define ApplicationName 'EMLy'
#define ApplicationVersion GetVersionNumbersString('EMLy.exe')
#define ApplicationVersion '1.2.4_beta'
[Setup]
AppName=EMLy
AppVersion=1.2.2
AppName={#ApplicationName}
AppVersion={#ApplicationVersion}
DefaultDirName={autopf}\EMLy
OutputBaseFilename=EMLy_Installer_1.2.2
OutputBaseFilename={#ApplicationName}_Installer_{#ApplicationVersion}
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
; Request administrative privileges for HKA to write to HKLM if needed,
; or use "lowest" if purely per-user, but file associations usually work better with admin rights or proper HKA handling.
PrivilegesRequired=admin
SetupIconFile=..\build\windows\icon.ico
UninstallDisplayIcon={app}\EMLy.exe
UninstallDisplayIcon={app}\{#ApplicationName}.exe
AppVerName={#ApplicationName} {#ApplicationVersion}
[Files]
; Source path relative to this .iss file (assuming it is in the "installer" folder and build is in "../build")
Source: "..\build\bin\EMLy.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\bin\{#ApplicationName}.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\bin\config.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\bin\signed_msg.exe"; DestDir: "{app}"; Flags: ignoreversion
[Registry]
; 1. Register the .eml extension and point it to our internal ProgID "EMLy.EML"
Root: HKA; Subkey: "Software\Classes\.eml"; ValueType: string; ValueName: ""; ValueData: "EMLy.EML"; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\.msg"; ValueType: string; ValueName: ""; ValueData: "EMLy.MSG"; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\.eml"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName}.EML"; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\.msg"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName}.MSG"; Flags: uninsdeletevalue
; 2. Define the ProgID with a readable name and icon
Root: HKA; Subkey: "Software\Classes\EMLy.EML"; ValueType: string; ValueName: ""; ValueData: "EMLy Email Message"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\EMLy.EML\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\EMLy.exe,0"
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.EML"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName} Email Message"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.EML\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#ApplicationName}.exe,0"
Root: HKA; Subkey: "Software\Classes\EMLy.MSG"; ValueType: string; ValueName: ""; ValueData: "EMLy Outlook Message"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\EMLy.MSG\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\EMLy.exe,0"
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.MSG"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName} Outlook Message"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.MSG\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#ApplicationName}.exe,0"
; 3. Define the open command
; "%1" passes the file path to the application
Root: HKA; Subkey: "Software\Classes\EMLy.EML\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\EMLy.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\EMLy.MSG\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\EMLy.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.EML\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\EMLy.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.MSG\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\EMLy.exe"" ""%1"""
; Optional: Add "Open with EMLy" to context menu explicitly (though file association typically handles the double click)
Root: HKA; Subkey: "Software\Classes\EMLy.EML\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "EMLy"
Root: HKA; Subkey: "Software\Classes\EMLy.MSG\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "EMLy"
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.EML\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "{#ApplicationName}"
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.MSG\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "{#ApplicationName}"
[Icons]
Name: "{autoprograms}\EMLy"; Filename: "{app}\EMLy.exe"
Name: "{autoprograms}\{#ApplicationName}"; Filename: "{app}\{#ApplicationName}.exe"