9797 <?xml version="1.0" encoding="utf-8"?>
9898 <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
9999 <metadata>
100- <id>git-vault </id>
100+ <id>gv </id>
101101 <version>$version</version>
102- <title>Git Vault</title>
102+ <title>Git Vault (gv) </title>
103103 <authors>zackiles</authors>
104104 <projectUrl>https://github.com/zackiles/git-vault</projectUrl>
105105 <licenseUrl>https://github.com/zackiles/git-vault/blob/main/LICENSE</licenseUrl>
@@ -111,7 +111,7 @@ jobs:
111111 <file src="tools\**" target="tools" />
112112 </files>
113113 </package>
114- "@ | Out-File -Encoding utf8 -FilePath .\choco-pkg\git-vault .nuspec
114+ "@ | Out-File -Encoding utf8 -FilePath .\choco-pkg\gv .nuspec
115115
116116 # Create chocolateyInstall.ps1
117117 @"
@@ -121,16 +121,24 @@ jobs:
121121 `$zipFile = Get-ChildItem -Path `$toolsDir -Filter "gv-windows.exe.zip" | Select-Object -First 1 -ExpandProperty FullName
122122
123123 `$packageArgs = @{
124- packageName = 'git-vault '
124+ packageName = 'gv '
125125 unzipLocation = `$toolsDir
126126 file = `$zipFile
127127 }
128128
129129 Get-ChocolateyUnzip @packageArgs
130130
131- # Rename the binary file to git-vault.exe
132- `$exeFile = Get-ChildItem -Path `$toolsDir -Filter "gv-windows.exe" | Select-Object -First 1 -ExpandProperty FullName
133- Rename-Item -Path `$exeFile -NewName "git-vault.exe" -Force
131+ # Copy the binary file to both gv.exe and git-vault.exe for compatibility
132+ `$exeFile = Get-ChildItem -Path `$toolsDir -Filter "gv-x86_64-pc-windows-msvc.exe" | Select-Object -First 1 -ExpandProperty FullName
133+ if (-not `$exeFile) {
134+ `$exeFile = Get-ChildItem -Path `$toolsDir -Filter "gv-windows.exe" | Select-Object -First 1 -ExpandProperty FullName
135+ }
136+
137+ # Create primary command as gv.exe
138+ Copy-Item -Path `$exeFile -Destination (Join-Path `$toolsDir "gv.exe") -Force
139+
140+ # Also create git-vault.exe as an alias
141+ Copy-Item -Path `$exeFile -Destination (Join-Path `$toolsDir "git-vault.exe") -Force
134142 "@ | Out-File -Encoding utf8 -FilePath .\choco-pkg\tools\chocolateyInstall.ps1
135143
136144 # Create verification file
@@ -156,7 +164,7 @@ jobs:
156164 shell : powershell
157165 run : |
158166 cd choco-pkg
159- choco pack git-vault .nuspec
167+ choco pack gv .nuspec
160168
161169 - name : Push to Chocolatey.org
162170 if : success()
@@ -168,4 +176,4 @@ jobs:
168176 # Use the API key from secrets
169177 choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
170178 # Push the package
171- choco push git-vault .${{ steps.release.outputs.VERSION }}.nupkg --source https://push.chocolatey.org/ --api-key $env:CHOCO_API_KEY
179+ choco push gv .${{ steps.release.outputs.VERSION }}.nupkg --source https://push.chocolatey.org/ --api-key $env:CHOCO_API_KEY
0 commit comments