Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove windows temporary #60

Merged
merged 1 commit into from
Dec 16, 2024
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
90 changes: 0 additions & 90 deletions .github/workflows/package-managers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,96 +56,6 @@ jobs:
--head triyanox:update-macports
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

scoop:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Create Scoop manifest
run: |
mkdir -p scoop
# Create manifest file
cat > scoop/lla.json << EOF
{
"version": "${{ github.event.release.tag_name }}",
"description": "A modern and extensible log analysis CLI tool",
"homepage": "https://github.com/triyanox/lla",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/triyanox/lla/releases/download/${{ github.event.release.tag_name }}/lla-windows-amd64.exe",
"bin": "lla-windows-amd64.exe"
}
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/triyanox/lla/releases/download/v$version/lla-windows-amd64.exe"
}
}
}
}
EOF

- name: Create Pull Request for Scoop
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "lla: update to ${{ github.event.release.tag_name }}"
title: "lla: update to ${{ github.event.release.tag_name }}"
body: |
Update lla to version ${{ github.event.release.tag_name }}
branch: update-scoop
base: master

- name: Create PR in Scoop
run: |
gh repo fork ScoopInstaller/Main --clone=false
gh pr create --repo ScoopInstaller/Main \
--title "lla: update to ${{ github.event.release.tag_name }}" \
--body "Update lla to version ${{ github.event.release.tag_name }}" \
--base master \
--head triyanox:update-scoop
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

winget:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Create Winget manifest
run: |
mkdir -p winget-manifests/l/lla/lla
cat > winget-manifests/l/lla/lla/manifest.yaml << EOF
PackageIdentifier: lla.lla
PackageVersion: ${{ github.event.release.tag_name }}
PackageName: lla
Publisher: triyanox
License: MIT
ShortDescription: A modern and extensible log analysis CLI tool
PackageUrl: https://github.com/triyanox/lla
Installers:
- Architecture: x64
InstallerUrl: https://github.com/triyanox/lla/releases/download/${{ github.event.release.tag_name }}/lla-windows-amd64.exe
InstallerType: portable
InstallerSha256: ${{ github.event.release.assets[0].sha256 }}
ManifestType: singleton
ManifestVersion: 1.0.0
EOF

- name: Create PR in Winget
run: |
gh repo fork microsoft/winget-pkgs --clone=false
gh pr create --repo microsoft/winget-pkgs \
--title "Add lla ${{ github.event.release.tag_name }}" \
--body "Add lla version ${{ github.event.release.tag_name }}" \
--base master \
--head triyanox:add-lla
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

nix:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,6 @@ jobs:
target: aarch64-apple-darwin
artifact_name: lla-macos-arm64

# Windows builds
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact_name: lla-windows-amd64.exe
- os: windows-latest
target: i686-pc-windows-msvc
artifact_name: lla-windows-i686.exe
- os: windows-latest
target: aarch64-pc-windows-msvc
artifact_name: lla-windows-arm64.exe

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -123,11 +112,7 @@ jobs:

- name: Prepare binary
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
cp target/${{ matrix.target }}/release/lla.exe ${{ matrix.artifact_name }}
else
cp target/${{ matrix.target }}/release/lla ${{ matrix.artifact_name }}
fi
cp target/${{ matrix.target }}/release/lla ${{ matrix.artifact_name }}

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down
8 changes: 1 addition & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New configuration option `theme`
- An extensive theming preset library
- Add the `--no-color` flag to disable color output, and works will all listing formats
- New package managers support:

- Flatpak
- Debian
- Scoop
- Winget

- New package managers support
- Include window builds in the releases

### Fixed
Expand Down
Loading