rebrand: arahkan tautan, badge, label UI & cek-update ke Gitea (bukan GitHub)
CI / test (push) Successful in 1m34s
CI / test (push) Successful in 1m34s
This commit is contained in:
1 parent
2bfed9bea3
commit
651fd0fc3d
8 files changed
+26
-42
No files matched your search
@@ -32,35 +32,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Build AppImage
|
- name: Build AppImage
|
||||||
env:
|
env:
|
||||||
# GH_USER/GH_REPO dipakai build.sh untuk menyisipkan info update zsync
|
# build.sh menyisipkan info update zsync yang mengarah ke rilis di Gitea.
|
||||||
# (gh-releases-zsync|<user>|<repo>|latest|lazyrun-*.AppImage.zsync)
|
GITEA_BASE: ${{ github.server_url }}/${{ github.repository }}
|
||||||
GH_USER: ${{ github.repository_owner }}
|
|
||||||
GH_REPO: ${{ github.event.repository.name }}
|
|
||||||
run: |
|
run: |
|
||||||
VERSION="${GITHUB_REF_NAME#v}" ./build.sh
|
VERSION="${GITHUB_REF_NAME#v}" ./build.sh
|
||||||
ls -lh dist/lazyrun-*.AppImage*
|
ls -lh dist/lazyrun-*.AppImage*
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
env:
|
uses: softprops/action-gh-release@v2
|
||||||
GH_TOKEN: ${{ github.token }}
|
with:
|
||||||
run: |
|
name: LazyRun ${{ github.ref_name }}
|
||||||
cat > /tmp/notes.md <<'NOTES'
|
generate_release_notes: true
|
||||||
|
body: |
|
||||||
Single-file AppImage for Linux x86_64. No root needed, everything stays in
|
Single-file AppImage for Linux x86_64. No root needed, everything stays in
|
||||||
`~/.local/` and `~/.config/lazyrun/`.
|
`~/.local/` and `~/.config/lazyrun/`.
|
||||||
|
|
||||||
```bash
|
|
||||||
chmod +x lazyrun-*-x86_64.AppImage
|
|
||||||
./lazyrun-*-x86_64.AppImage
|
|
||||||
```
|
|
||||||
|
|
||||||
Already using LazyRun? It checks this release page on startup and offers to
|
Already using LazyRun? It checks this release page on startup and offers to
|
||||||
update itself (delta updates with `AppImageUpdate` when installed).
|
update itself (delta updates with `AppImageUpdate` when installed).
|
||||||
|
files: |
|
||||||
---
|
dist/lazyrun-*.AppImage
|
||||||
NOTES
|
dist/lazyrun-*.AppImage.zsync
|
||||||
gh release create "$GITHUB_REF_NAME" \
|
|
||||||
dist/lazyrun-*.AppImage \
|
|
||||||
dist/lazyrun-*.AppImage.zsync \
|
|
||||||
--title "LazyRun ${GITHUB_REF_NAME}" \
|
|
||||||
--notes-file /tmp/notes.md \
|
|
||||||
--generate-notes
|
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
# LazyRun — lazy shortcut build
|
# LazyRun — lazy shortcut build
|
||||||
|
|
||||||
[](https://github.com/oxpoe/lazyrun/actions/workflows/ci.yml)
|
[](https://gitea.oxpoe.qzz.io/oxpoe/lazyrun/actions/workflows/ci.yml)
|
||||||
[](https://github.com/oxpoe/lazyrun/releases/latest)
|
[](https://gitea.oxpoe.qzz.io/oxpoe/lazyrun/releases)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ breathes while the app is open (the koala in `assets/logo.svg` is the mascot).*
|
|||||||
<img src="docs/main-light.png" width="49%" alt="LazyRun in light theme">
|
<img src="docs/main-light.png" width="49%" alt="LazyRun in light theme">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
- **Repo:** <https://github.com/oxpoe/lazyrun>
|
- **Repo:** <https://gitea.oxpoe.qzz.io/oxpoe/lazyrun>
|
||||||
- **Donate:** <https://donasi.oxpoe.qzz.io/>
|
- **Donate:** <https://donasi.oxpoe.qzz.io/>
|
||||||
|
|
||||||
- **Executable shortcut** — picks an ELF/AppImage/script/Windows `.exe`, copies it to
|
- **Executable shortcut** — picks an ELF/AppImage/script/Windows `.exe`, copies it to
|
||||||
@@ -79,7 +79,7 @@ breathes while the app is open (the koala in `assets/logo.svg` is the mascot).*
|
|||||||
Needs a desktop Linux with the usual GL/X11 or Wayland libraries (any KDE Plasma or
|
Needs a desktop Linux with the usual GL/X11 or Wayland libraries (any KDE Plasma or
|
||||||
GNOME install has them). No root, nothing outside your home directory.
|
GNOME install has them). No root, nothing outside your home directory.
|
||||||
|
|
||||||
Download the AppImage from [Releases](https://github.com/oxpoe/lazyrun/releases), then:
|
Download the AppImage from [Releases](https://gitea.oxpoe.qzz.io/oxpoe/lazyrun/releases), then:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chmod +x lazyrun-*-x86_64.AppImage
|
chmod +x lazyrun-*-x86_64.AppImage
|
||||||
@@ -167,7 +167,7 @@ GH_USER=oxpoe GH_REPO=lazyrun ./build.sh
|
|||||||
Desktop copy, import/export, dark mode.
|
Desktop copy, import/export, dark mode.
|
||||||
- Firefox PWA via `--kiosk`, Flatpak/Snap targets, icon preview.
|
- Firefox PWA via `--kiosk`, Flatpak/Snap targets, icon preview.
|
||||||
|
|
||||||
Known limitations are tracked as [issues](https://github.com/oxpoe/lazyrun/issues);
|
Known limitations are tracked as [issues](https://gitea.oxpoe.qzz.io/oxpoe/lazyrun/issues);
|
||||||
the main ones:
|
the main ones:
|
||||||
|
|
||||||
- the type label (`Go`, `Electron`, …) is detected when the shortcut is created, so a
|
- the type label (`Go`, `Electron`, …) is detected when the shortcut is created, so a
|
||||||
|
|||||||
@@ -39,12 +39,8 @@ export ARCH
|
|||||||
export LINUXDEPLOY_OUTPUT_APP_NAME=lazyrun
|
export LINUXDEPLOY_OUTPUT_APP_NAME=lazyrun
|
||||||
export LINUXDEPLOY_OUTPUT_VERSION="$VERSION"
|
export LINUXDEPLOY_OUTPUT_VERSION="$VERSION"
|
||||||
export LDAI_OUTPUT="$PWD/$OUT/lazyrun-$VERSION-$ARCH.AppImage"
|
export LDAI_OUTPUT="$PWD/$OUT/lazyrun-$VERSION-$ARCH.AppImage"
|
||||||
if [[ -n "${GH_USER:-}" && -n "${GH_REPO:-}" ]]; then
|
GITEA_BASE="${GITEA_BASE:-https://gitea.oxpoe.qzz.io/oxpoe/lazyrun}"
|
||||||
export LDAI_UPDATE_INFORMATION="gh-releases-zsync|$GH_USER|$GH_REPO|latest|lazyrun-*.AppImage.zsync"
|
export LDAI_UPDATE_INFORMATION="zsync|$GITEA_BASE/releases/download/v$VERSION/lazyrun-$VERSION-$ARCH.AppImage.zsync"
|
||||||
else
|
|
||||||
echo "==> catatan: GH_USER/GH_REPO kosong, AppImage tanpa update info zsync"
|
|
||||||
export LDAI_NO_APPSTREAM=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Library X11/Wayland/xkb/cursor tidak boleh ikut dibundel: kalau versinya beda
|
# Library X11/Wayland/xkb/cursor tidak boleh ikut dibundel: kalau versinya beda
|
||||||
# dengan host, cursor & rendering jadi tidak native (mis. cursor theme desktop tidak terpakai).
|
# dengan host, cursor & rendering jadi tidak native (mis. cursor theme desktop tidak terpakai).
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
"lazyrun/internal/store"
|
"lazyrun/internal/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Link aplikasi: repo GitHub LazyRun dan halaman donasi.
|
// Link aplikasi: repo Gitea LazyRun dan halaman donasi.
|
||||||
const (
|
const (
|
||||||
repoURL = "https://github.com/oxpoe/lazyrun"
|
repoURL = "https://gitea.oxpoe.qzz.io/oxpoe/lazyrun"
|
||||||
donateURL = "https://donasi.oxpoe.qzz.io/"
|
donateURL = "https://donasi.oxpoe.qzz.io/"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ var tr = map[string][2]string{
|
|||||||
"need_target": {"Pick at least one location: menu or desktop.", "Pilih minimal satu lokasi: menu atau desktop."},
|
"need_target": {"Pick at least one location: menu or desktop.", "Pilih minimal satu lokasi: menu atau desktop."},
|
||||||
"no_browser": {"No supported browser found. Install Chrome, Chromium, Brave, Edge, Vivaldi, or Firefox first.", "Browser yang didukung tidak ditemukan. Install Chrome, Chromium, Brave, Edge, Vivaldi, atau Firefox dulu."},
|
"no_browser": {"No supported browser found. Install Chrome, Chromium, Brave, Edge, Vivaldi, or Firefox first.", "Browser yang didukung tidak ditemukan. Install Chrome, Chromium, Brave, Edge, Vivaldi, atau Firefox dulu."},
|
||||||
|
|
||||||
"github": {"GitHub", "GitHub"},
|
"github": {"Gitea", "Gitea"},
|
||||||
"donate": {"Donate", "Donasi"},
|
"donate": {"Donate", "Donasi"},
|
||||||
"check_updates": {"Check for Updates", "Cek Update"},
|
"check_updates": {"Check for Updates", "Cek Update"},
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
apiBase = "https://api.github.com/repos/oxpoe/lazyrun/releases"
|
apiBase = "https://gitea.oxpoe.qzz.io/api/v1/repos/oxpoe/lazyrun/releases"
|
||||||
repoURL = "https://github.com/oxpoe/lazyrun"
|
repoURL = "https://gitea.oxpoe.qzz.io/oxpoe/lazyrun"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LAZYRUN_UPDATE_API bisa dipakai untuk mengarahkan cek update ke server lain
|
// LAZYRUN_UPDATE_API bisa dipakai untuk mengarahkan cek update ke server lain
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ func TestLatestParsesRelease(t *testing.T) {
|
|||||||
_, _ = w.Write([]byte(`{
|
_, _ = w.Write([]byte(`{
|
||||||
"tag_name": "v1.2.0",
|
"tag_name": "v1.2.0",
|
||||||
"body": " - ikon online\n - animasi ",
|
"body": " - ikon online\n - animasi ",
|
||||||
"html_url": "https://github.com/oxpoe/lazyrun/releases/tag/v1.2.0",
|
"html_url": "https://gitea.oxpoe.qzz.io/oxpoe/lazyrun/releases/tag/v1.2.0",
|
||||||
"assets": [
|
"assets": [
|
||||||
{"name": "lazyrun-1.2.0-x86_64.AppImage.zsync", "browser_download_url": "https://contoh/zsync"},
|
{"name": "lazyrun-1.2.0-x86_64.AppImage.zsync", "browser_download_url": "https://contoh/zsync"},
|
||||||
{"name": "lazyrun-1.2.0-x86_64.AppImage", "browser_download_url": "https://contoh/appimage"}
|
{"name": "lazyrun-1.2.0-x86_64.AppImage", "browser_download_url": "https://contoh/appimage"}
|
||||||
@@ -61,7 +61,7 @@ func TestLatestParsesRelease(t *testing.T) {
|
|||||||
defer srv.Close()
|
defer srv.Close()
|
||||||
|
|
||||||
SetEndpoint(srv.URL)
|
SetEndpoint(srv.URL)
|
||||||
t.Cleanup(func() { SetEndpoint("https://api.github.com/repos/oxpoe/lazyrun/releases") })
|
t.Cleanup(func() { SetEndpoint("https://gitea.oxpoe.qzz.io/api/v1/repos/oxpoe/lazyrun/releases") })
|
||||||
|
|
||||||
rel, err := Latest()
|
rel, err := Latest()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ ln -s usr/bin/lazyrun lazyrun.AppDir/AppRun
|
|||||||
|
|
||||||
# 3. Build AppImage dengan dukungan update
|
# 3. Build AppImage dengan dukungan update
|
||||||
./appimagetool-x86_64.AppImage \
|
./appimagetool-x86_64.AppImage \
|
||||||
-u "gh-releases-zsync|user|lazyrun|latest|lazyrun-*.AppImage.zsync" \
|
-u "zsync|https://gitea.oxpoe.qzz.io/oxpoe/lazyrun/releases/download/<tag>/lazyrun-<ver>-x86_64.AppImage.zsync" \
|
||||||
lazyrun.AppDir
|
lazyrun.AppDir
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user