Skip to content

Commit

Permalink
remove chglog, add steps to upload to apt.hrfee.dev
Browse files Browse the repository at this point in the history
chglog isn't actually needed. Packages are uploaded as jfa-go(-git) and
jfa-go-tray(-git).
  • Loading branch information
hrfee committed May 24, 2021
1 parent 2ad84db commit 8fd919b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 8,162 deletions.
7 changes: 0 additions & 7 deletions .chglog.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .drone.yml
Expand Up @@ -10,6 +10,9 @@ steps:
- git fetch --tags
- name: release
image: golang:latest
volumes:
- name: ssh_key
path: /id_rsa
environment:
BUILDRONE_KEY:
from_secret: BUILDRONE_KEY
Expand All @@ -26,7 +29,13 @@ steps:
- ./scripts/version.sh ../goreleaser
- wget https://builds.hrfee.pw/upload.py -P ../
- pip3 install requests
- bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"'
- bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty"'
- bash -c 'python3 ../upload.py https://builds.hrfee.pw hrfee jfa-go --tag internal=true'
volumes:
- name: ssh_key
host:
path: /root/.ssh/id_rsa_packaging
trigger:
event:
- tag
Expand Down Expand Up @@ -73,6 +82,9 @@ type: docker
steps:
- name: build
image: golang:latest
volumes:
- name: ssh_key
path: /id_rsa
commands:
- apt-get update -y
- apt-get install build-essential python3-pip curl software-properties-common sed upx gcc libgtk-3-dev libappindicator3-dev gcc-mingw-w64-x86-64 -y
Expand All @@ -83,11 +95,17 @@ steps:
- ./scripts/version.sh ./goreleaser --snapshot --skip-publish --rm-dist
- wget https://builds.hrfee.pw/upload.py
- pip3 install requests
- bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"'
- bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty"'
- bash -c 'python3 upload.py https://builds.hrfee.pw hrfee jfa-go --upload ./dist/*.zip ./dist/*.deb ./dist/*.rpm ./dist/*.apk --tag internal-git=true'
environment:
BUILDRONE_KEY:
from_secret: BUILDRONE_KEY

volumes:
- name: ssh_key
host:
path: /root/.ssh/id_rsa_packaging
trigger:
branch:
- main
Expand Down
6 changes: 6 additions & 0 deletions .goreleaser.yml
Expand Up @@ -111,6 +111,7 @@ changelog:
nfpms:
- id: notray
file_name_template: '{{ .ProjectName }}_{{ .Arch }}_v{{ .Version }}'
package_name: "jfa-go{{ if .IsSnapshot }}-git{{ end }}"
homepage: https://github.com/hrfee/jfa-go
description: A web app for managing users on Jellyfin
maintainer: Harvey Tindall <hrfee@hrfee.dev>
Expand All @@ -128,6 +129,7 @@ nfpms:
- rpm
- id: tray
file_name_template: '{{ .ProjectName }}_TrayIcon_{{ .Arch }}_v{{ .Version }}'
package_name: "jfa-go-tray{{ if .IsSnapshot }}-git{{ end }}"
homepage: https://github.com/hrfee/jfa-go
description: A web app for managing users on Jellyfin
maintainer: Harvey Tindall <hrfee@hrfee.dev>
Expand All @@ -145,6 +147,10 @@ nfpms:
- rpm
overrides:
deb:
conflicts:
- jfa-go
replaces:
- jfa-go
dependencies:
- libappindicator3-1
rpm:
Expand Down
21 changes: 21 additions & 0 deletions README.md
Expand Up @@ -56,6 +56,27 @@ docker create \
```
`TrayIcon` builds include a tray icon to start/stop/restart, and an option to automatically start when you log-in to your computer. For Linux users, these builds depend on the `libappindicator3-1`/`libappindicator-gtk3`/`libappindicator` package for Debian/Ubuntu, Fedora, and Alpine respectively.

##### Debian
```shell
sudo apt-get update && sudo apt-get install curl apt-transport-https gnupg
curl https://apt.hrfee.dev/hrfee.pubkey.gpg | sudo apt-key add -
echo "deb https://apt.hrfee.dev trusty main" | sudo tee /etc/apt/sources.list.d/hrfee.list
sudo apt-get update

# Stable releases

## For servers
#sudo apt-get install jfa-go
## For desktops/servers with GUI (has dependencies)
#sudo apt-get install jfa-go-tray

# Unstable (nightly) releases

## For servers
#sudo apt-get install jfa-go
## For desktops/servers with GUI (has dependencies)
#sudo apt-get install jfa-go-tray
```
Available on the AUR as [jfa-go](https://aur.archlinux.org/packages/jfa-go/), [jfa-go-bin](https://aur.archlinux.org/packages/jfa-go) or [jfa-go-git](https://aur.archlinux.org/packages/jfa-go-git/).

For other platforms, grab an archive from the release section for your platform (or nightly builds [here](https://builds.hrfee.dev/view/hrfee/jfa-go)), and extract the `jfa-go` executable to somewhere useful.
Expand Down

0 comments on commit 8fd919b

Please sign in to comment.