mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e060feaf09 | ||
|
|
178f61a98d | ||
|
|
79b8d6fa14 | ||
|
|
007f6ef1a3 | ||
|
|
1637f36d1d |
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -2,8 +2,14 @@ name: Main
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
tags:
|
tags:
|
||||||
- "v*.*"
|
- "v*.*"
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -19,7 +25,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
./release/*
|
./release/*
|
||||||
|
|||||||
4
gpu.ps1
4
gpu.ps1
@@ -17,7 +17,7 @@ Function Get-PSScriptPath {
|
|||||||
function SetAutostart () {
|
function SetAutostart () {
|
||||||
$taskName = "G14Helper"
|
$taskName = "G14Helper"
|
||||||
$task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue
|
$task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue
|
||||||
if ($task -ne $null) {return }
|
if ($null -ne $task) {return }
|
||||||
|
|
||||||
$scriptDir = Get-PSScriptPath
|
$scriptDir = Get-PSScriptPath
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ function SetAutostart () {
|
|||||||
|
|
||||||
function CheckAutostart () {
|
function CheckAutostart () {
|
||||||
$task = Get-ScheduledTask -TaskName "G14Helper" -ErrorAction SilentlyContinue
|
$task = Get-ScheduledTask -TaskName "G14Helper" -ErrorAction SilentlyContinue
|
||||||
$Menu_Autostart.Checked = ($task -ne $null)
|
$Menu_Autostart.Checked = ($null -ne $task)
|
||||||
}
|
}
|
||||||
|
|
||||||
function DisableAutostart () {
|
function DisableAutostart () {
|
||||||
|
|||||||
Reference in New Issue
Block a user