Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
id: check-manifest
shell: pwsh
run: |
$response = Invoke-WebRequest -Uri "https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/o/OpenCLICollective/gro" -Method Head -SkipHttpErrorCheck
$response = Invoke-WebRequest -Uri "https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/o/OpenCLICollective/google-readonly" -Method Head -SkipHttpErrorCheck
if ($response.StatusCode -eq 200) {
Write-Host "Manifest exists - will use wingetcreate update"
echo "exists=true" >> $env:GITHUB_OUTPUT
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
Write-Host "Updating existing manifest to version $version"
Write-Host "x64 URL: $x64"
Write-Host "arm64 URL: $arm64"
./wingetcreate.exe update OpenCLICollective.gro --version $version --urls $x64 $arm64 --submit --token $env:WINGET_GITHUB_TOKEN
./wingetcreate.exe update OpenCLICollective.google-readonly --version $version --urls $x64 $arm64 --submit --token $env:WINGET_GITHUB_TOKEN

- name: Create manifest (new package)
if: steps.check-manifest.outputs.exists == 'false'
Expand All @@ -262,23 +262,23 @@ jobs:
New-Item -ItemType Directory -Path $manifestDir -Force | Out-Null

# Update version manifest
$versionManifest = Get-Content "packaging/winget/OpenCLICollective.gro.yaml" -Raw
$versionManifest = Get-Content "packaging/winget/OpenCLICollective.google-readonly.yaml" -Raw
$versionManifest = $versionManifest -replace "0\.0\.0", $version
Set-Content "$manifestDir/OpenCLICollective.gro.yaml" $versionManifest
Set-Content "$manifestDir/OpenCLICollective.google-readonly.yaml" $versionManifest

# Update locale manifest
$localeManifest = Get-Content "packaging/winget/OpenCLICollective.gro.locale.en-US.yaml" -Raw
$localeManifest = Get-Content "packaging/winget/OpenCLICollective.google-readonly.locale.en-US.yaml" -Raw
$localeManifest = $localeManifest -replace "0\.0\.0", $version
Set-Content "$manifestDir/OpenCLICollective.gro.locale.en-US.yaml" $localeManifest
Set-Content "$manifestDir/OpenCLICollective.google-readonly.locale.en-US.yaml" $localeManifest

# Update installer manifest with version and real checksums
$installerManifest = Get-Content "packaging/winget/OpenCLICollective.gro.installer.yaml" -Raw
$installerManifest = Get-Content "packaging/winget/OpenCLICollective.google-readonly.installer.yaml" -Raw
$installerManifest = $installerManifest -replace "0\.0\.0", $version
# Use .NET regex for sequential replacement (PowerShell -replace doesn't support count)
$regex = [regex]"0{64}"
$installerManifest = $regex.Replace($installerManifest, $env:X64_HASH, 1)
$installerManifest = $regex.Replace($installerManifest, $env:ARM64_HASH, 1)
Set-Content "$manifestDir/OpenCLICollective.gro.installer.yaml" $installerManifest
Set-Content "$manifestDir/OpenCLICollective.google-readonly.installer.yaml" $installerManifest

Write-Host "Generated manifests:"
Get-ChildItem $manifestDir | ForEach-Object { Write-Host " $_" }
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
event-type: package-release
client-payload: |-
{
"package": "gro",
"package": "google-readonly",
"version": "${{ github.ref_name }}",
"repo": "open-cli-collective/google-readonly"
}
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ archives:

# Linux packages (.deb and .rpm)
nfpms:
- id: gro
package_name: gro
- id: google-readonly
package_name: google-readonly
vendor: Open CLI Collective
homepage: https://github.com/open-cli-collective/google-readonly
maintainer: Open CLI Collective <https://github.com/open-cli-collective>
Expand All @@ -54,7 +54,7 @@ nfpms:
bindir: /usr/bin
contents:
- src: LICENSE
dst: /usr/share/licenses/gro/LICENSE
dst: /usr/share/licenses/google-readonly/LICENSE

checksum:
name_template: "checksums.txt"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gro
# google-readonly

A read-only command-line interface for Google services. Search, read, and view Gmail messages, threads, and attachments without any ability to modify, send, or delete data.

Expand All @@ -19,7 +19,7 @@ A read-only command-line interface for Google services. Search, read, and view G
**Homebrew (recommended)**

```bash
brew install open-cli-collective/tap/gro
brew install open-cli-collective/tap/google-readonly
```

> Note: This installs from our third-party tap.
Expand All @@ -37,7 +37,7 @@ choco install google-readonly
**Winget**

```powershell
winget install OpenCLICollective.gro
winget install OpenCLICollective.google-readonly
```

---
Expand All @@ -55,7 +55,7 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/open-

# Install
sudo apt update
sudo apt install gro
sudo apt install google-readonly
```

> Note: This is our third-party APT repository, not official Debian/Ubuntu repos.
Expand All @@ -74,7 +74,7 @@ gpgkey=https://open-cli-collective.github.io/linux-packages/keys/gpg.asc
EOF

# Install
sudo dnf install gro
sudo dnf install google-readonly
```

> Note: This is our third-party RPM repository, not official Fedora/RHEL repos.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.10.0.schema.json

PackageIdentifier: OpenCLICollective.gro
PackageIdentifier: OpenCLICollective.google-readonly
PackageVersion: 0.0.0
InstallerType: zip
NestedInstallerType: portable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.10.0.schema.json

PackageIdentifier: OpenCLICollective.gro
PackageIdentifier: OpenCLICollective.google-readonly
PackageVersion: 0.0.0
PackageLocale: en-US
Publisher: Open CLI Collective
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.10.0.schema.json

PackageIdentifier: OpenCLICollective.gro
PackageIdentifier: OpenCLICollective.google-readonly
PackageVersion: 0.0.0
DefaultLocale: en-US
ManifestType: version
Expand Down
Loading