From e4b2a38372878e23f8508a91cbc0423b7694b500 Mon Sep 17 00:00:00 2001 From: Chris Titus Tech Date: Mon, 3 Mar 2025 14:31:18 -0600 Subject: [PATCH] fix a few tweak errors --- .github/ISSUE_TEMPLATE/bug_report.yaml | 6 ++-- .github/ISSUE_TEMPLATE/feature_request.yaml | 4 +-- config/tweaks.json | 35 --------------------- functions/private/Install-WinUtilWinget.ps1 | 10 +++--- 4 files changed, 10 insertions(+), 45 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index a17a517e..09baddc6 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -7,10 +7,10 @@ body: attributes: value: | # 🐞 **Issue Report** - Thank you for taking the time to report an issue! Please provide as much detail as possible to help us address the problem efficiently. + Thank you for taking the time to report an issue! Please provide as much detail as possible to help us address the problem efficiently. - ## ⚠️ **IMPORTANT** - - 🛠️ **Supported environments only:** We only support Windows 11. Custom ISOs that are not made using Microwin are not supported. + ## ⚠️ **IMPORTANT** + - 🛠️ **Supported environments only:** We only support Windows 11. Custom ISOs that are not made using Microwin are not supported. - 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ). - type: checkboxes diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index d32fae1e..65e24338 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -9,7 +9,7 @@ body: # ✨ **Feature request** Thank you for taking the time to suggest a feature! Please provide as much detail as possible to help us understand and evaluate your request. - ## ⚠️ **IMPORTANT** + ## ⚠️ **IMPORTANT** - 🛠️ **Supported environments only:** We only support Windows 11. - 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ). @@ -54,4 +54,4 @@ body: label: 🖼️ Additional context placeholder: "Include screenshots, code blocks (use triple backticks ```), or any other relevant information." validations: - required: false \ No newline at end of file + required: false diff --git a/config/tweaks.json b/config/tweaks.json index 045f6f69..799df24a 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -423,26 +423,6 @@ "StartupType": "Automatic", "OriginalType": "Automatic" }, - { - "Name": "DoSvc", - "StartupType": "AutomaticDelayedStart", - "OriginalType": "Automatic" - }, - { - "Name": "DsSvc", - "StartupType": "Manual", - "OriginalType": "Manual" - }, - { - "Name": "DsmSvc", - "StartupType": "Manual", - "OriginalType": "Manual" - }, - { - "Name": "DusmSvc", - "StartupType": "Automatic", - "OriginalType": "Automatic" - }, { "Name": "EFS", "StartupType": "Manual", @@ -898,11 +878,6 @@ "StartupType": "Manual", "OriginalType": "Manual" }, - { - "Name": "SgrmBroker", - "StartupType": "Automatic", - "OriginalType": "Automatic" - }, { "Name": "SharedAccess", "StartupType": "Manual", @@ -933,11 +908,6 @@ "StartupType": "Manual", "OriginalType": "Manual" }, - { - "Name": "StateRepository", - "StartupType": "Manual", - "OriginalType": "Automatic" - }, { "Name": "StiSvc", "StartupType": "Manual", @@ -973,11 +943,6 @@ "StartupType": "Automatic", "OriginalType": "Automatic" }, - { - "Name": "TextInputManagementService", - "StartupType": "Manual", - "OriginalType": "Automatic" - }, { "Name": "Themes", "StartupType": "Automatic", diff --git a/functions/private/Install-WinUtilWinget.ps1 b/functions/private/Install-WinUtilWinget.ps1 index cd412fa9..f7335c86 100644 --- a/functions/private/Install-WinUtilWinget.ps1 +++ b/functions/private/Install-WinUtilWinget.ps1 @@ -127,16 +127,16 @@ function Install-WinUtilWinget { } # GitHub fallback installation method $releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" - $asset = (Invoke-RestMethod -Uri $releases_url).assets | - Where-Object { $_.name -match "\.msixbundle$" } | + $asset = (Invoke-RestMethod -Uri $releases_url).assets | + Where-Object { $_.name -match "\.msixbundle$" } | Select-Object -First 1 - + $download_url = $asset.browser_download_url $output_path = Join-Path $env:TEMP $asset.name - + Invoke-WebRequest -Uri $download_url -OutFile $output_path Add-AppxPackage -Path $output_path -ErrorAction Stop - + # Verify installation $wingetCmd = Get-Command winget -ErrorAction Stop Write-Information "Successfully installed WinGet through GitHub"