fix: correct Windows package installation script generation

- Fixed package identifier usage: now uses `name` field (winget ID) instead of `id` field throughout Windows script
- Enhanced error handling with exit code checking and consistent [OK]/[ERROR] prefixes for better visibility
- Standardized PowerShell string quotes to single quotes for consistency
This commit is contained in:
Yusuf İpek
2025-11-11 16:26:51 +03:00
parent 299e951368
commit 40a34d7133
3 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ export class WingetPackageFetcher {
if (!packageSet.has(identifier)) {
packageSet.add(identifier)
allPackages.push({
name: pkg.name,
name: identifier,
publisher: publisher.name,
version: 'latest',
description: `${pkg.name} by ${publisher.name}`