From 9826f95a0d2b3c484fe807d3c0cac0d6204dc9d3 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sat, 13 Jan 2024 21:55:32 +0800 Subject: [PATCH 1/4] rename winget-pkgs, deb, rpm package name to gop --- .goreleaser.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 908dddb4a..36519f899 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -68,12 +68,25 @@ changelog: - "^test:" winget: - - name: gop + - name: goplus homepage: "https://goplus.org/" publisher: goplus publisher_url: https://github.com/goplus/gop publisher_support_url: "https://github.com/goplus/gop/issues/new" package_identifier: goplus.gop + path: "manifests/g/goplus/gop/{{.Version}}" + tags: + - golang + - go + - gop + - goplus + - programming + - language + - compiler + - interpreter + - data science + - engineering + - education short_description: The Go+ Programming Language description: | The Go+ programming language is designed for engineering, STEM education, and data science. @@ -103,7 +116,7 @@ winget: branch: master nfpms: - - package_name: goplus-gop + - package_name: gop vendor: goplus homepage: https://goplus.org/ maintainer: Li Jie @@ -179,7 +192,7 @@ nfpms: snapcrafts: - id: gop - name: goplus + name: gop title: The Go+ Programming Language summary: The Go+ Programming Language description: | From e331a00e8b1034506e5150c4201a556b7ea68aa6 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Tue, 16 Jan 2024 09:42:15 +0800 Subject: [PATCH 2/4] doc: update installation --- README.md | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 397bc498b..db564bb34 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,41 @@ For more details, see [Quick Start](doc/docs.md). ## How to install +### on Windows + +```sh +winget install goplus +``` + +Or + +```sh +winget install goplus.gop +``` + +### on Debian/Ubuntu + +```sh +sudo bash -c ' echo "deb [trusted=yes] https://apt.fury.io/goplus/ /" > /etc/apt/sources.list.d/goplus.list' +sudo apt update +sudo apt install gop +``` + +### on RedHat/CentOS/Fedora + +```sh +sudo bash -c 'echo -e "[goplus]\nname=Go+ Repo\nbaseurl=https://yum.fury.io/goplus/\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/goplus.repo' +sudo yum install gop +``` + +### on macOS/Linux(Homebrew) + +Install via [brew](https://brew.sh/) + +```sh +$ brew install goplus +``` + ### from source code For now, we suggest you install Go+ from source code. @@ -63,14 +98,6 @@ cd gop all.bat ``` -### on macOS/Linux - -Install via [brew](https://brew.sh/) -```sh -$ brew install goplus -``` - - ## Go+ Applications ### 2D Games powered by Go+ From d487227c6c52e121186dd924a00202559a06b981 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Mon, 22 Jan 2024 11:21:18 +0800 Subject: [PATCH 3/4] doc: update rpm/deb installation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db564bb34..f0f460e8a 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ winget install goplus.gop ### on Debian/Ubuntu ```sh -sudo bash -c ' echo "deb [trusted=yes] https://apt.fury.io/goplus/ /" > /etc/apt/sources.list.d/goplus.list' +sudo bash -c ' echo "deb [trusted=yes] https://pkgs.goplus.org/apt/ /" > /etc/apt/sources.list.d/goplus.list' sudo apt update sudo apt install gop ``` @@ -70,7 +70,7 @@ sudo apt install gop ### on RedHat/CentOS/Fedora ```sh -sudo bash -c 'echo -e "[goplus]\nname=Go+ Repo\nbaseurl=https://yum.fury.io/goplus/\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/goplus.repo' +sudo bash -c 'echo -e "[goplus]\nname=Go+ Repo\nbaseurl=https://pkgs.goplus.org/yum/\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/goplus.repo' sudo yum install gop ``` From dfaac7643f7b78e73a66a9d091b80943a09fefe6 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Mon, 22 Jan 2024 11:21:36 +0800 Subject: [PATCH 4/4] ci: upload to fury.io --- .github/workflows/release-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 91acd95c3..2e61bcb09 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -50,3 +50,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WINGET_PKGS_PRIVATE_KEY: ${{ secrets.WINGET_PKGS_PRIVATE_KEY }} + + - name: Upload deb/rpm to Fury.io + run: | + for file in dist/*.{deb,rpm} + do + echo "Uploading $file to Fury.io" + curl -sS -F package=@$file https://$FURY_TOKEN@push.fury.io/goplus/ + done + env: + FURY_TOKEN: ${{ secrets.FURY_TOKEN }}