Dorion icon indicating copy to clipboard operation
Dorion copied to clipboard

[ENHANCEMENT] Suggestion to automate updating of portable version.

Open cozykitten opened this issue 4 months ago • 0 comments

Is your feature request related to a problem? Please describe.

No "Problem", I just skip updates a bunch cause I'm too lazy to do the navigating extracting and deleting. (yes I know, modern society problems sigh) Also hi again :)

Describe the solution you'd like

I just put a powershell script in my TEMP folder that automatically extracts the most recent "Dorion_*_win64_portable.zip" into my Dorion directory and deletes the zip file after that.

I don't know how easily Rust does windows file system operations, but if it's easy,... I mean it already downloads the zip in TEMP and even opens explorer there which is great. Also Idk if that would work with native Windows archive extract thing, I use zip.

If possible and easy it could have a config field where it stores dorion home folder path, could just edit config and put it in manually. Then when clicking on update, it downloads the zip as usual, creates a child process or something, closed dorion and extracts the zip into the dorion folder, then deletes the zip and starts dorion.

Describe alternatives you've considered

Like, thats clearly not very important, if thats not something easy to implement then my powershell hack is enough for me.

Additional context

What I'm using now for reference.

# Define paths
$zipPath = Get-ChildItem -Path .\ -Filter "Dorion_*_win64_portable.zip" | Sort-Object -Property CreationTime -Descending | Select-Object -First 1
if (-not $zipPath) {
    Write-Error "No matching zip file found!"
    exit 1
}
$targetPath = "C:\Software\Programs\Dorion"

# Extract and replace
try {
	&"C:\Program Files\7-Zip\7z.exe" e $zipPath -o"$targetPath" -aoa
} catch {
    Write-Error "Failed during extraction: $_"
    exit 1
}

Remove-Item -Path $zipPath

cozykitten avatar Aug 22 '25 12:08 cozykitten