diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 693e3a2e..b2d2d1ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: run: | mkdir release cp *.exe ./release + cp ghelper.ps1 ./release zip -r g14-helper.zip ./release - name: Release diff --git a/autostart.ps1 b/autostart.ps1 deleted file mode 100644 index 073464eb..00000000 --- a/autostart.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -$taskName = "G14Helper" -$task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue -if ($null -ne $task) -{ - Unregister-ScheduledTask -TaskName $taskName -Confirm:$false -} - -$scriptDir = Split-Path $PSCommandPath -Parent - -# TODO: EDIT THIS STUFF AS NEEDED... -$action = New-ScheduledTaskAction -Execute "$scriptDir\g14-helper.exe" -$trigger = New-ScheduledTaskTrigger -AtLogon -$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries - -$principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest -$definition = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings -Description "Run $($taskName) at Logon" - -Register-ScheduledTask -TaskName $taskName -InputObject $definition \ No newline at end of file diff --git a/g14-helper.exe b/g14-helper.exe index c5764181..60749575 100644 Binary files a/g14-helper.exe and b/g14-helper.exe differ diff --git a/ghelper-compile.ps1 b/ghelper-compile.ps1 index 72ee1a01..5863c32d 100644 --- a/ghelper-compile.ps1 +++ b/ghelper-compile.ps1 @@ -1,2 +1,2 @@ -ps2exe .\gpu.ps1 g14-helper.exe -title 'G14 Helper' -DPIAware -winFormsDPIAware -requireAdmin -iconFile 'standard.ico' -noConsole -copyright 'G14 Helper Tool' -noOutput +ps2exe .\ghelper.ps1 g14-helper.exe -title 'G14 Helper' -DPIAware -winFormsDPIAware -requireAdmin -iconFile 'standard.ico' -noConsole -copyright 'G14 Helper Tool' -noOutput .\g14-helper.exe \ No newline at end of file diff --git a/gpu.ps1 b/ghelper.ps1 similarity index 99% rename from gpu.ps1 rename to ghelper.ps1 index 674cebd5..e280f4d2 100644 --- a/gpu.ps1 +++ b/ghelper.ps1 @@ -190,8 +190,8 @@ $icon_ultimate = [Drawing.Icon][IO.MemoryStream][Convert]::FromBase64String("AAA # Init Config and Log $ghelper_app_path = "$($env:LOCALAPPDATA)\GHelper" -$ghelper_config_path = "$($env:LOCALAPPDATA)\GHelper\config.json" -$ghelper_log_path = "$($env:LOCALAPPDATA)\GHelper\log.txt" +$ghelper_config_path = "$ghelper_app_path\config.json" +$ghelper_log_path = "$ghelper_app_path\log.txt" New-Item -ItemType Directory -Force -Path $ghelper_app_path