Compare commits
3 Commits
e7d1850a63
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
654475d3ea | ||
|
|
3c24421c8c | ||
|
|
1e84320588 |
@@ -3,85 +3,85 @@
|
|||||||
// This file is automatically generated. DO NOT EDIT
|
// This file is automatically generated. DO NOT EDIT
|
||||||
|
|
||||||
export function CheckIsDefaultEMLHandler() {
|
export function CheckIsDefaultEMLHandler() {
|
||||||
return ObfuscatedCall(0, []);
|
return window['go']['main']['App']['CheckIsDefaultEMLHandler']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetConfig() {
|
export function GetConfig() {
|
||||||
return ObfuscatedCall(1, []);
|
return window['go']['main']['App']['GetConfig']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetImageViewerData() {
|
export function GetImageViewerData() {
|
||||||
return ObfuscatedCall(2, []);
|
return window['go']['main']['App']['GetImageViewerData']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetMachineData() {
|
export function GetMachineData() {
|
||||||
return ObfuscatedCall(3, []);
|
return window['go']['main']['App']['GetMachineData']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetPDFViewerData() {
|
export function GetPDFViewerData() {
|
||||||
return ObfuscatedCall(4, []);
|
return window['go']['main']['App']['GetPDFViewerData']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetStartupFile() {
|
export function GetStartupFile() {
|
||||||
return ObfuscatedCall(5, []);
|
return window['go']['main']['App']['GetStartupFile']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetViewerData() {
|
export function GetViewerData() {
|
||||||
return ObfuscatedCall(6, []);
|
return window['go']['main']['App']['GetViewerData']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function IsDebuggerRunning() {
|
export function IsDebuggerRunning() {
|
||||||
return ObfuscatedCall(7, []);
|
return window['go']['main']['App']['IsDebuggerRunning']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenDefaultAppsSettings() {
|
export function OpenDefaultAppsSettings() {
|
||||||
return ObfuscatedCall(8, []);
|
return window['go']['main']['App']['OpenDefaultAppsSettings']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenEMLWindow(arg1, arg2) {
|
export function OpenEMLWindow(arg1, arg2) {
|
||||||
return ObfuscatedCall(9, [arg1, arg2]);
|
return window['go']['main']['App']['OpenEMLWindow'](arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenImage(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) {
|
export function OpenImageWindow(arg1, arg2) {
|
||||||
return ObfuscatedCall(11, [arg1, arg2]);
|
return window['go']['main']['App']['OpenImageWindow'](arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function OpenPDF(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) {
|
export function OpenPDFWindow(arg1, arg2) {
|
||||||
return ObfuscatedCall(13, [arg1, arg2]);
|
return window['go']['main']['App']['OpenPDFWindow'](arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function QuitApp() {
|
export function QuitApp() {
|
||||||
return ObfuscatedCall(14, []);
|
return window['go']['main']['App']['QuitApp']();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReadEML(arg1) {
|
export function ReadEML(arg1) {
|
||||||
return ObfuscatedCall(15, [arg1]);
|
return window['go']['main']['App']['ReadEML'](arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReadMSG(arg1, arg2) {
|
export function ReadMSG(arg1, arg2) {
|
||||||
return ObfuscatedCall(16, [arg1, arg2]);
|
return window['go']['main']['App']['ReadMSG'](arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReadMSGOSS(arg1) {
|
export function ReadMSGOSS(arg1) {
|
||||||
return ObfuscatedCall(17, [arg1]);
|
return window['go']['main']['App']['ReadMSGOSS'](arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReadPEC(arg1) {
|
export function ReadPEC(arg1) {
|
||||||
return ObfuscatedCall(18, [arg1]);
|
return window['go']['main']['App']['ReadPEC'](arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function SaveConfig(arg1) {
|
export function SaveConfig(arg1) {
|
||||||
return ObfuscatedCall(19, [arg1]);
|
return window['go']['main']['App']['SaveConfig'](arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ShowOpenFileDialog() {
|
export function ShowOpenFileDialog() {
|
||||||
return ObfuscatedCall(20, []);
|
return window['go']['main']['App']['ShowOpenFileDialog']();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<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";
|
import { mailState } from "$lib/stores/mail-state.svelte";
|
||||||
|
|
||||||
let { data } = $props();
|
let { data } = $props();
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { redirect } from '@sveltejs/kit';
|
|||||||
import type { PageLoad } from './$types';
|
import type { PageLoad } from './$types';
|
||||||
import { GetViewerData, GetStartupFile, ReadEML, ReadMSG } from '$lib/wailsjs/go/main/App';
|
import { GetViewerData, GetStartupFile, ReadEML, ReadMSG } from '$lib/wailsjs/go/main/App';
|
||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
import { settingsStore } from '$lib/stores/settings.svelte';
|
|
||||||
import type { internal } from '$lib/wailsjs/go/models';
|
import type { internal } from '$lib/wailsjs/go/models';
|
||||||
|
|
||||||
export const load: PageLoad = async () => {
|
export const load: PageLoad = async () => {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { Label } from "$lib/components/ui/label";
|
import { Label } from "$lib/components/ui/label";
|
||||||
import { Separator } from "$lib/components/ui/separator";
|
import { Separator } from "$lib/components/ui/separator";
|
||||||
import { Switch } from "$lib/components/ui/switch";
|
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 type { EMLy_GUI_Settings } from "$lib/types";
|
||||||
import { toast } from "svelte-sonner";
|
import { toast } from "svelte-sonner";
|
||||||
import { It, Us } from "svelte-flags";
|
import { It, Us } from "svelte-flags";
|
||||||
|
|||||||
@@ -1,42 +1,46 @@
|
|||||||
|
#define ApplicationName 'EMLy'
|
||||||
|
#define ApplicationVersion GetVersionNumbersString('EMLy.exe')
|
||||||
|
#define ApplicationVersion '1.2.4_beta'
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
AppName=EMLy
|
AppName={#ApplicationName}
|
||||||
AppVersion=1.2.2
|
AppVersion={#ApplicationVersion}
|
||||||
DefaultDirName={autopf}\EMLy
|
DefaultDirName={autopf}\EMLy
|
||||||
OutputBaseFilename=EMLy_Installer_1.2.2
|
OutputBaseFilename={#ApplicationName}_Installer_{#ApplicationVersion}
|
||||||
ArchitecturesInstallIn64BitMode=x64compatible
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=yes
|
||||||
; Request administrative privileges for HKA to write to HKLM if needed,
|
; 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.
|
; or use "lowest" if purely per-user, but file associations usually work better with admin rights or proper HKA handling.
|
||||||
PrivilegesRequired=admin
|
PrivilegesRequired=admin
|
||||||
SetupIconFile=..\build\windows\icon.ico
|
SetupIconFile=..\build\windows\icon.ico
|
||||||
UninstallDisplayIcon={app}\EMLy.exe
|
UninstallDisplayIcon={app}\{#ApplicationName}.exe
|
||||||
|
AppVerName={#ApplicationName} {#ApplicationVersion}
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
; Source path relative to this .iss file (assuming it is in the "installer" folder and build is in "../build")
|
; 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\config.ini"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "..\build\bin\signed_msg.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
||||||
|
|
||||||
[Registry]
|
[Registry]
|
||||||
; 1. Register the .eml extension and point it to our internal ProgID "EMLy.EML"
|
; 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\.eml"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName}.EML"; Flags: uninsdeletevalue
|
||||||
Root: HKA; Subkey: "Software\Classes\.msg"; ValueType: string; ValueName: ""; ValueData: "EMLy.MSG"; 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
|
; 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\{#ApplicationName}.EML"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName} 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\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\{#ApplicationName}.MSG"; ValueType: string; ValueName: ""; ValueData: "{#ApplicationName} 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\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#ApplicationName}.exe,0"
|
||||||
|
|
||||||
; 3. Define the open command
|
; 3. Define the open command
|
||||||
; "%1" passes the file path to the application
|
; "%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\{#ApplicationName}.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}.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)
|
; 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\{#ApplicationName}.EML\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "{#ApplicationName}"
|
||||||
Root: HKA; Subkey: "Software\Classes\EMLy.MSG\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "EMLy"
|
Root: HKA; Subkey: "Software\Classes\{#ApplicationName}.MSG\shell\open"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "{#ApplicationName}"
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{autoprograms}\EMLy"; Filename: "{app}\EMLy.exe"
|
Name: "{autoprograms}\{#ApplicationName}"; Filename: "{app}\{#ApplicationName}.exe"
|
||||||
|
|||||||
Reference in New Issue
Block a user