Skip to content

Commit f2366b6

Browse files
committed
chore: tag version v0.0.4
1 parent fd8b854 commit f2366b6

4 files changed

Lines changed: 30 additions & 17 deletions

File tree

.github/workflows/update-chocolatey.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ jobs:
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

.github/workflows/update-homebrew-tap.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,20 @@ jobs:
151151
# Install the appropriate binary based on platform
152152
if Hardware::CPU.arm?
153153
if OS.mac?
154-
bin.install "gv-aarch64-apple-darwin" => "git-vault"
154+
bin.install "gv-aarch64-apple-darwin" => "gv"
155155
else
156-
bin.install "gv-aarch64-unknown-linux-gnu" => "git-vault"
156+
bin.install "gv-aarch64-unknown-linux-gnu" => "gv"
157157
end
158158
else
159159
if OS.mac?
160-
bin.install "gv-x86_64-apple-darwin" => "git-vault"
160+
bin.install "gv-x86_64-apple-darwin" => "gv"
161161
else
162-
bin.install "gv-x86_64-unknown-linux-gnu" => "git-vault"
162+
bin.install "gv-x86_64-unknown-linux-gnu" => "gv"
163163
end
164164
end
165+
166+
# Create git-vault symlink for backward compatibility
167+
bin.install_symlink "gv" => "git-vault"
165168
end
166169
167170
test do

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ curl -fsSL https://raw.githubusercontent.com/zackiles/git-vault/main/install.sh
4747

4848
```bash
4949
brew tap zackiles/git-vault
50-
brew install git-vault
50+
brew install gv
5151
```
5252

5353
**Chocolatey (Windows):**
5454

5555
```powershell
56-
choco install git-vault
56+
choco install gv
5757
```
5858

5959
The installer downloads the correct binary, checks dependencies (git, gpg), sets up your repository, and can optionally install `gv` globally.
@@ -95,6 +95,9 @@ gv list
9595

9696
Displays managed files/directories, status, and archive sizes.
9797

98+
> [!TIP]
99+
> You can also use `git-vault` as an alias for `gv` for backward compatibility.
100+
98101
> [!IMPORTANT]
99102
> Your .gitignore will be automatically updated and you're safe to commit everything including `.vault/storage/` and `.vault/config.json`)
100103

deno.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"http",
1919
"fs",
2020
"ffi",
21-
"temporal",
22-
21+
"temporal"
2322
],
2423
"imports": {
2524
"@std/async": "jsr:@std/async@1",

0 commit comments

Comments
 (0)