"add save files" and "add ps2exe-script update" implementation#41
Open
emgeiger wants to merge 12 commits into
Open
"add save files" and "add ps2exe-script update" implementation#41emgeiger wants to merge 12 commits into
emgeiger wants to merge 12 commits into
Conversation
Merging with (the) main fork.
…e PSScriptRoot, fix typo
…fe config loading
…-PS2EXEUpdate helper
Owner
|
Thanks for your pull request @emgeiger!
Please resolve these issues, and I'll test the changes and consider a merge. Thanks for your work, and I'm looking forward to your changes. Greetings |
|
|
||
| #region pre_code | ||
| $PS2EXE_GUI_Verbose = $true | ||
| $global:PS2EXE_GUI_ConfigPath = $null |
| #region pre_code | ||
| $PS2EXE_GUI_Verbose = $true | ||
| $global:PS2EXE_GUI_ConfigPath = $null | ||
| $global:PS2EXE_GUI_CONFIG_FILTER = "PS2EXE-GUI Config (*.json)|*.json" |
| $PS2EXE_GUI_Verbose = $true | ||
| $global:PS2EXE_GUI_ConfigPath = $null | ||
| $global:PS2EXE_GUI_CONFIG_FILTER = "PS2EXE-GUI Config (*.json)|*.json" | ||
| $global:PS2EXE_PS1_RAW_URL = "https://raw.githubusercontent.com/MScholtes/Win-PS2EXE/master/ps2exe.ps1" |
| 'ui_noOutput','ui_noError','ui_noVisualStyles','ui_exitOnCancel', | ||
| 'ui_DPIAware','ui_winFormsDPIAware','ui_requireAdmin','ui_supportOS','ui_virtualize','ui_longPaths' | ||
| ) | ||
| $global:PS2EXE_GUI_DEFAULTS = [ordered]@{ |
| } | ||
|
|
||
| function Invoke-UI_SaveConfig { | ||
| if($null -ne $global:PS2EXE_GUI_ConfigPath){ |
|
|
||
| function Invoke-UI_SaveConfig { | ||
| if($null -ne $global:PS2EXE_GUI_ConfigPath){ | ||
| Invoke-PS2EXEGUI_SaveConfig -FilePath $global:PS2EXE_GUI_ConfigPath |
| } | ||
|
|
||
| function Invoke-UI_SaveAsConfig { | ||
| $FilePath = Invoke-PS2EXEGUI_SaveFileDialog -Filter $global:PS2EXE_GUI_CONFIG_FILTER |
| } | ||
|
|
||
| function Invoke-UI_OpenConfig { | ||
| $FilePath = Invoke-PS2EXEGUI_OpenFileDialog -Filter $global:PS2EXE_GUI_CONFIG_FILTER |
| if($PS2EXE_GUI_Verbose){ Write-Host "[Invoke-PS2EXEGUI_CheckPS2EXEUpdate]" } | ||
| $TempFile = (New-TemporaryFile).FullName | ||
| try { | ||
| Invoke-WebRequest -Uri $global:PS2EXE_PS1_RAW_URL -OutFile $TempFile -UseBasicParsing |
Adding extra Switch option to the commandlet 'Copy-item', -ErrorAction Stop, and compares file hashes to confirm the file copied correctly. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…sage) Agent-Logs-Url: https://github.com/emgeiger/PS2EXE-GUI/sessions/ada819e2-0198-463a-bf93-87c97ae101dd Co-authored-by: emgeiger <36167405+emgeiger@users.noreply.github.com>
Agent-Logs-Url: https://github.com/emgeiger/PS2EXE-GUI/sessions/21464e5b-5c98-4b36-b0d7-86455cc9d1ae Co-authored-by: emgeiger <36167405+emgeiger@users.noreply.github.com>
…ults before applying file values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for saving and loading configuration files in the PS2EXE-GUI, as well as a feature to check for and update the
ps2exe.ps1script directly from the GUI. It also updates the README to reflect these completed features and improves the usability of the File and Help menus. The most important changes are:New Features: Configuration Save/Load
src/PS2EXE-GUI.ps1)src/PS2EXE-GUI.ps1)New Feature: ps2exe.ps1 Update Check
ps2exe.ps1, compare hashes, prompt the user, and download or update the script as needed, with user feedback via message boxes. (src/PS2EXE-GUI.ps1)UI/UX Improvements
src/PS2EXE-GUI.ps1) [1] [2]src/PS2EXE-GUI.ps1)Documentation
README.mdto mark the "add ps2exe-script update" and "add save files" features as complete. (README.md)Minor Default/Behavioral Changes
src/PS2EXE-GUI.ps1)