mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-11 23:57:21 -08:00
ci: remove Buildkite, add missing dependencies, README edits (#885)
* build: add libicu dependency for deb package * ci: remove obsolete Buildkite publish workflow * build: add xdg-utils dependency * readme: update Linux notes Remove Buildkite repo instructions and fix some typos.
This commit is contained in:
parent
7361b3d403
commit
f1acc96a72
6 changed files with 5 additions and 77 deletions
39
.github/workflows/publish-packages.yml
vendored
39
.github/workflows/publish-packages.yml
vendored
|
@ -1,39 +0,0 @@
|
||||||
name: Publish to Buildkite
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
secrets:
|
|
||||||
BUILDKITE_TOKEN:
|
|
||||||
required: true
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
name: Publish to Buildkite
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
runtime: [linux-x64, linux-arm64]
|
|
||||||
steps:
|
|
||||||
- name: Download package artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: package.${{ matrix.runtime }}
|
|
||||||
path: packages
|
|
||||||
|
|
||||||
- name: Publish DEB package
|
|
||||||
env:
|
|
||||||
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
|
|
||||||
run: |
|
|
||||||
FILE=$(echo packages/*.deb)
|
|
||||||
curl -X POST https://api.buildkite.com/v2/packages/organizations/sourcegit/registries/sourcegit-deb/packages \
|
|
||||||
-H "Authorization: Bearer $BUILDKITE_TOKEN" \
|
|
||||||
-F "file=@$FILE" \
|
|
||||||
--fail
|
|
||||||
|
|
||||||
- name: Publish RPM package
|
|
||||||
env:
|
|
||||||
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
|
|
||||||
run: |
|
|
||||||
FILE=$(echo packages/*.rpm)
|
|
||||||
curl -X POST https://api.buildkite.com/v2/packages/organizations/sourcegit/registries/sourcegit-rpm/packages \
|
|
||||||
-H "Authorization: Bearer $BUILDKITE_TOKEN" \
|
|
||||||
-F "file=@$FILE" \
|
|
||||||
--fail
|
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -24,12 +24,6 @@ jobs:
|
||||||
uses: ./.github/workflows/package.yml
|
uses: ./.github/workflows/package.yml
|
||||||
with:
|
with:
|
||||||
version: ${{ needs.version.outputs.version }}
|
version: ${{ needs.version.outputs.version }}
|
||||||
publish-packages:
|
|
||||||
needs: [package, version]
|
|
||||||
name: Publish Packages
|
|
||||||
uses: ./.github/workflows/publish-packages.yml
|
|
||||||
secrets:
|
|
||||||
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
|
|
||||||
release:
|
release:
|
||||||
needs: [package, version]
|
needs: [package, version]
|
||||||
name: Release
|
name: Release
|
||||||
|
|
31
README.md
31
README.md
|
@ -102,35 +102,8 @@ For **macOS** users:
|
||||||
|
|
||||||
For **Linux** users:
|
For **Linux** users:
|
||||||
|
|
||||||
* For Debian/Ubuntu based distributions, you can add the `sourcegit` repository by following:
|
* `AppImage` files can be found on [AppImage hub](https://appimage.github.io/SourceGit/), `xdg-open` (`xdg-utils`) must be installed to support open native file manager.
|
||||||
You may need to install curl and/or gpg first, if you're on a very minimal host:
|
* Make sure [git-credential-manager](https://github.com/git-ecosystem/git-credential-manager/releases) is installed on your Linux.
|
||||||
```shell
|
|
||||||
apt update && apt install curl gpg -y
|
|
||||||
```
|
|
||||||
Install the registry signing key:
|
|
||||||
```shell
|
|
||||||
curl -fsSL "https://packages.buildkite.com/sourcegit/sourcegit-deb/gpgkey" | gpg --dearmor -o /etc/apt/keyrings/sourcegit_sourcegit-deb-archive-keyring.gpg
|
|
||||||
```
|
|
||||||
Configure the source:
|
|
||||||
```shell
|
|
||||||
echo -e "deb [signed-by=/etc/apt/keyrings/sourcegit_sourcegit-deb-archive-keyring.gpg] https://packages.buildkite.com/sourcegit/sourcegit-deb/any/ any main\ndeb-src [signed-by=/etc/apt/keyrings/sourcegit_sourcegit-deb-archive-keyring.gpg] https://packages.buildkite.com/sourcegit/sourcegit-deb/any/ any main" > /etc/apt/sources.list.d/buildkite-sourcegit-sourcegit-deb.list
|
|
||||||
```
|
|
||||||
Update your local repository and install the package:
|
|
||||||
```shell
|
|
||||||
apt update && apt install sourcegit
|
|
||||||
```
|
|
||||||
* For RHEL/Fedora based distributions, you can add the `sourcegit` repository by following:
|
|
||||||
Configure the source:
|
|
||||||
```shell
|
|
||||||
sudo sh -c 'echo -e "[sourcegit-rpm]\nname=sourcegit-rpm\nbaseurl=https://packages.buildkite.com/sourcegit/sourcegit-rpm/rpm_any/rpm_any/\$basearch\nenabled=1\nrepo_gpgcheck=1\ngpgcheck=0\ngpgkey=https://packages.buildkite.com/sourcegit/sourcegit-rpm/gpgkey\npriority=1"' > /etc/yum.repos.d/sourcegit-rpm.repo
|
|
||||||
```
|
|
||||||
Install the package with this command:
|
|
||||||
```shell
|
|
||||||
sudo dnf install -y sourcegit
|
|
||||||
```
|
|
||||||
* `Appimage` files can be found on [AppimageHub](https://appimage.github.io/SourceGit/)
|
|
||||||
* `xdg-open` must be installed to support open native file manager.
|
|
||||||
* Make sure [git-credential-manager](https://github.com/git-ecosystem/git-credential-manager/releases) is installed on your linux.
|
|
||||||
* Maybe you need to set environment variable `AVALONIA_SCREEN_SCALE_FACTORS`. See https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI.
|
* Maybe you need to set environment variable `AVALONIA_SCREEN_SCALE_FACTORS`. See https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI.
|
||||||
* If you can NOT type accented characters, such as `ê`, `ó`, try to set the environment variable `AVALONIA_IM_MODULE` to `none`.
|
* If you can NOT type accented characters, such as `ê`, `ó`, try to set the environment variable `AVALONIA_IM_MODULE` to `none`.
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
|
||||||
.github\workflows\package.yml = .github\workflows\package.yml
|
.github\workflows\package.yml = .github\workflows\package.yml
|
||||||
.github\workflows\release.yml = .github\workflows\release.yml
|
.github\workflows\release.yml = .github\workflows\release.yml
|
||||||
.github\workflows\localization-check.yml = .github\workflows\localization-check.yml
|
.github\workflows\localization-check.yml = .github\workflows\localization-check.yml
|
||||||
.github\workflows\publish-packages.yml = .github\workflows\publish-packages.yml
|
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49A7C2D6-558C-4FAA-8F5D-EEE81497AED7}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49A7C2D6-558C-4FAA-8F5D-EEE81497AED7}"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Package: sourcegit
|
Package: sourcegit
|
||||||
Version: 8.23
|
Version: 8.23
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: libx11-6, libice6, libsm6
|
Depends: libx11-6, libice6, libsm6, libicu76 | libicu72 | libicu67 | libicu63, xdg-utils
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Maintainer: longshuang@msn.cn
|
Maintainer: longshuang@msn.cn
|
||||||
Description: Open-source & Free Git GUI Client
|
Description: Open-source & Free Git GUI Client
|
||||||
|
|
|
@ -8,6 +8,7 @@ Source: https://github.com/sourcegit-scm/sourcegit/archive/refs/tags/v%_version.
|
||||||
Requires: libX11.so.6()(%{__isa_bits}bit)
|
Requires: libX11.so.6()(%{__isa_bits}bit)
|
||||||
Requires: libSM.so.6()(%{__isa_bits}bit)
|
Requires: libSM.so.6()(%{__isa_bits}bit)
|
||||||
Requires: libicu
|
Requires: libicu
|
||||||
|
Requires: xdg-utils
|
||||||
|
|
||||||
%define _build_id_links none
|
%define _build_id_links none
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue