File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed
Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1919 - name : Create archive
2020 run : |
2121 mkdir -p CCS
22- cp -r Resources CCS/
23- cp CCS.ps1 Functions.psm1 Listener.ps1 CCS/
22+ cp -r Resources CCS.ps1 Functions.psm1 Listener.ps1 CCS/
2423 zip -r Cursor-Colors-Synchronizer.zip CCS
2524
2625 - name : Publish release
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ if ($installListener) {
7777 $Parameters = @ {
7878 TaskName = ' CCS Listener'
7979 Description = $Localization.ListenerTaskDescription
80- Action = New-ScheduledTaskAction - Execute ' powershell.exe ' - Argument " -ExecutionPolicy Bypass -NoExit -WindowStyle Hidden -File `" $ ( $PathsProvider ::Listener) `" "
81- Trigger = New-ScheduledTaskTrigger - AtLogOn - User (whoami)
80+ Action = New-ScheduledTaskAction - Execute $PathsProvider ::RunHidden - Argument " powershell -ExecutionPolicy Bypass -NoExit -File `" $ ( $PathsProvider ::Listener) `" "
81+ Trigger = New-ScheduledTaskTrigger - AtLogOn - User $ env: USERNAME
8282 Settings = New-ScheduledTaskSettingsSet - AllowStartIfOnBatteries - StartWhenAvailable - DontStopIfGoingOnBatteries - ExecutionTimeLimit ' 00:00:00'
8383 RunLevel = ' Highest'
8484 Force = $true
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ class PathsProvider {
8686 static [string ] $EditedCursorsFolder
8787 static Hidden [string ] $OriginalCursorsRootFolder
8888 static Hidden [string ] $DiffsRootFolder
89+ static [string ] $BinFolder
90+ static [string ] $RunHidden
8991
9092 PathsProvider([string ]$Root ) {
9193 if (-not (Test-Folder - Path $Root )) {
@@ -100,6 +102,8 @@ class PathsProvider {
100102 [PathsProvider ]::EditedCursorsFolder = " $ ( [PathsProvider ]::CursorsFolder) \Edited"
101103 [PathsProvider ]::OriginalCursorsRootFolder = " $ ( [PathsProvider ]::CursorsFolder) \Original"
102104 [PathsProvider ]::DiffsRootFolder = " $ ( [PathsProvider ]::RecourcesFolder) \Diffs"
105+ [PathsProvider ]::BinFolder = " $ ( [PathsProvider ]::RecourcesFolder) \Bin"
106+ [PathsProvider ]::RunHidden = " $ ( [PathsProvider ]::BinFolder) \run-hidden.exe"
103107 }
104108
105109 static [hashtable ] GetDynamicPaths() {
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ iwr 'https://raw.githubusercontent.com/SunsetTechuila/Cursor-Colors-Synchronizer
4848## Credits
4949
5050- [ Jepri Creations] ( https://jepricreations.com ) for the cursors
51+ - [ stax76] ( https://github.com/stax76 ) for [ run-hidden] ( https://github.com/stax76/run-hidden )
5152
5253## Legal
5354
You can’t perform that action at this time.
0 commit comments