mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
fix auto start
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / macos10 (arm64) (push) Waiting to run
Build / macos10 (x64) (push) Waiting to run
Build / artifact-windows (push) Blocked by required conditions
Build / artifact-windows7 (push) Blocked by required conditions
Build / artifact-macos (push) Blocked by required conditions
Build / artifact-macos10 (push) Blocked by required conditions
Build / artifact-linux (push) Blocked by required conditions
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / macos10 (arm64) (push) Waiting to run
Build / macos10 (x64) (push) Waiting to run
Build / artifact-windows (push) Blocked by required conditions
Build / artifact-windows7 (push) Blocked by required conditions
Build / artifact-macos (push) Blocked by required conditions
Build / artifact-macos10 (push) Blocked by required conditions
Build / artifact-linux (push) Blocked by required conditions
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
This commit is contained in:
parent
7df1894af3
commit
d6ce915161
|
@ -22,12 +22,12 @@ const taskXml = `<?xml version="1.0" encoding="UTF-16"?>
|
||||||
</Principal>
|
</Principal>
|
||||||
</Principals>
|
</Principals>
|
||||||
<Settings>
|
<Settings>
|
||||||
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
|
<MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
|
||||||
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
|
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
|
||||||
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
|
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
|
||||||
<AllowHardTerminate>false</AllowHardTerminate>
|
<AllowHardTerminate>false</AllowHardTerminate>
|
||||||
<StartWhenAvailable>true</StartWhenAvailable>
|
<StartWhenAvailable>false</StartWhenAvailable>
|
||||||
<RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
|
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
|
||||||
<IdleSettings>
|
<IdleSettings>
|
||||||
<StopOnIdleEnd>false</StopOnIdleEnd>
|
<StopOnIdleEnd>false</StopOnIdleEnd>
|
||||||
<RestartOnIdle>false</RestartOnIdle>
|
<RestartOnIdle>false</RestartOnIdle>
|
||||||
|
@ -42,11 +42,12 @@ const taskXml = `<?xml version="1.0" encoding="UTF-16"?>
|
||||||
</Settings>
|
</Settings>
|
||||||
<Actions Context="Author">
|
<Actions Context="Author">
|
||||||
<Exec>
|
<Exec>
|
||||||
<Command>"${exePath()}"</Command>
|
<Command>"${path.join(taskDir(), `mihomo-party-run.exe`)}"</Command>
|
||||||
|
<Arguments>"${exePath()}"</Arguments>
|
||||||
</Exec>
|
</Exec>
|
||||||
</Actions>
|
</Actions>
|
||||||
</Task>
|
</Task>
|
||||||
`
|
`
|
||||||
|
|
||||||
export async function checkAutoRun(): Promise<boolean> {
|
export async function checkAutoRun(): Promise<boolean> {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
|
|
|
@ -89,7 +89,7 @@ const elevateTaskXml = `<?xml version="1.0" encoding="UTF-16"?>
|
||||||
<Hidden>false</Hidden>
|
<Hidden>false</Hidden>
|
||||||
<RunOnlyIfIdle>false</RunOnlyIfIdle>
|
<RunOnlyIfIdle>false</RunOnlyIfIdle>
|
||||||
<WakeToRun>false</WakeToRun>
|
<WakeToRun>false</WakeToRun>
|
||||||
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
|
<ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
|
||||||
<Priority>7</Priority>
|
<Priority>7</Priority>
|
||||||
</Settings>
|
</Settings>
|
||||||
<Actions Context="Author">
|
<Actions Context="Author">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user