[GH-ISSUE #3269] [Feature Request] use uname -s and uname -m to combine the release file name #2620

Closed
opened 2026-05-05 13:41:27 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @whlsxl on GitHub (Jan 25, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3269

Describe the feature request

Use uname to define the name of the release file, can easily use in CI/CD or Dockerfile.

Example docker compose .

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @whlsxl on GitHub (Jan 25, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3269 ### Describe the feature request Use `uname` to define the name of the release file, can easily use in CI/CD or `Dockerfile`. Example [docker compose](https://github.com/docker/compose/releases) . ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:41:27 -06:00
Author
Owner

@Becods commented on GitHub (Jan 25, 2023):

dpkg --print-architecture

Or

architecture=""
case $(uname -m) in
    i386) architecture="386" ;;
    i686) architecture="386" ;;
    x86_64) architecture="amd64" ;;
    arm) dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm" ;;
    *) echo "Unable to determine system architecture."; exit 1 ;;
esac

Or you can be more direct and compile the source code directly from, you can refer to Makefile.cross-compiles

<!-- gh-comment-id:1404183586 --> @Becods commented on GitHub (Jan 25, 2023): ```dpkg --print-architecture``` Or ``` architecture="" case $(uname -m) in i386) architecture="386" ;; i686) architecture="386" ;; x86_64) architecture="amd64" ;; arm) dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm" ;; *) echo "Unable to determine system architecture."; exit 1 ;; esac ``` Or you can be more direct and compile the source code directly from, you can refer to [Makefile.cross-compiles](https://github.com/fatedier/frp/blob/dev/Makefile.cross-compiles)
Author
Owner

@github-actions[bot] commented on GitHub (Feb 25, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1444805684 --> @github-actions[bot] commented on GitHub (Feb 25, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2620
No description provided.