mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf92e04501 | ||
|
|
39514d89f6 | ||
|
|
293ab6f35d | ||
|
|
f2967fcc79 | ||
|
|
e060feaf09 | ||
|
|
178f61a98d | ||
|
|
79b8d6fa14 | ||
|
|
007f6ef1a3 | ||
|
|
1637f36d1d |
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@@ -4,6 +4,11 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*"
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -17,10 +22,16 @@ jobs:
|
||||
cp *.exe ./release
|
||||
echo ${{ github.sha }} > ./release/Release.txt
|
||||
|
||||
- name: Archive Artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: "G14 Helper"
|
||||
path: release/*
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: |
|
||||
./release/*
|
||||
artifacts/*
|
||||
|
||||
|
||||
4
gpu.ps1
4
gpu.ps1
@@ -17,7 +17,7 @@ Function Get-PSScriptPath {
|
||||
function SetAutostart () {
|
||||
$taskName = "G14Helper"
|
||||
$task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue
|
||||
if ($task -ne $null) {return }
|
||||
if ($null -ne $task) {return }
|
||||
|
||||
$scriptDir = Get-PSScriptPath
|
||||
|
||||
@@ -34,7 +34,7 @@ function SetAutostart () {
|
||||
|
||||
function CheckAutostart () {
|
||||
$task = Get-ScheduledTask -TaskName "G14Helper" -ErrorAction SilentlyContinue
|
||||
$Menu_Autostart.Checked = ($task -ne $null)
|
||||
$Menu_Autostart.Checked = ($null -ne $task)
|
||||
}
|
||||
|
||||
function DisableAutostart () {
|
||||
|
||||
Reference in New Issue
Block a user