Skip to content

Commit edc5194

Browse files
committed
Merge branch 'dev' into release
2 parents 44686f9 + e1fa097 commit edc5194

File tree

13 files changed

+167
-0
lines changed

13 files changed

+167
-0
lines changed

.github/workflows/build.yml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: packages
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
workflow_dispatch:
8+
9+
env:
10+
RELEASE_VERSION: 0.8.0
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: '0'
19+
submodules: 'recursive'
20+
- name: install-dependencies
21+
run: |
22+
git submodule sync
23+
sudo apt-get update -qq -y
24+
sudo apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot build-essential
25+
- name: import-signing-key
26+
run: |
27+
mkdir -p ~/.gnupg/
28+
printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key
29+
gpg --import ~/.gnupg/private.key
30+
env:
31+
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
32+
- name: package-build
33+
run: |
34+
git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz
35+
tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
36+
ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
37+
cd lagrange-${RELEASE_VERSION}
38+
debuild
39+
cd ..
40+
mkdir -p artifacts
41+
mv *deb artifacts/
42+
shell: bash
43+
- name: plain-build
44+
run: |
45+
mkdir builddir
46+
cd builddir
47+
cmake .. -DCMAKE_BUILD_TYPE=Release
48+
cmake --build .
49+
mkdir -p ../artifacts/
50+
tar -czvf ../artifacts/lagrange-${RELEASE_VERSION}-linux-amd64.tar.gz lagrange
51+
cd ..
52+
- name: upload-artifact
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: ubuntu-latest
56+
path: artifacts
57+
debian_build:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
with:
62+
fetch-depth: '0'
63+
submodules: 'recursive'
64+
- name: get-repo-name
65+
run: |
66+
echo "REPOSITORY_NAME="$(echo $GITHUB_REPOSITORY | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV
67+
shell: bash
68+
- name: install-dependencies
69+
run: |
70+
git submodule sync
71+
- name: debian_docker
72+
uses: ./.github/workflows/docker-debian/
73+
- name: upload-debian-artifact
74+
uses: actions/upload-artifact@v2
75+
with:
76+
name: debian
77+
path: /home/runner/work/${{env.REPOSITORY_NAME}}/${{env.REPOSITORY_NAME}}/artifacts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: 'docker'
2+
runs:
3+
using: 'docker'
4+
image: 'debian-dockerfile'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Container image that runs your code
2+
FROM debian:buster
3+
4+
# Copies your code file from your action repository to the filesystem path `/` of the container
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
8+
ENTRYPOINT ["/entrypoint.sh"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh -xv
2+
3+
apt-get update -qq -y
4+
apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot git build-essential
5+
git submodule sync
6+
7+
git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz
8+
tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
9+
ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
10+
cd lagrange-${RELEASE_VERSION}
11+
debuild
12+
cd ..
13+
mkdir -p artifacts
14+
mv *deb artifacts/

debian/changelog

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
lagrange (0.8.0-1) unstable; urgency=low
2+
3+
* Added support for Gopher.
4+
* Added support for the full palette of 8-bit ANSI foreground colors.
5+
* Added option to disable smooth scrolling.
6+
* Added button to manually set server certificate as trusted (if the certificate is valid but untrusted).
7+
* Added keybindings for Back/Forward navigation.
8+
* Added a context menu item for opening HTTP links in the default browser even when a proxy is configured.
9+
* Revised identity creation dialog: changed field order, added warning about temporary identities not being saved.
10+
* Ctrl+Click opens tab in background, Shift+Ctrl+Click opens as foreground tab. The same modifier keys work with keyboard navigation.
11+
* Improved word wrapping of emoticons (:D).
12+
* Automatic redirects allowed when the destination URL uses the same scheme as the originating URL. For example, when using a proxy, HTTP(S) is allowed to automatically redirect to other HTTP(S) URLs.
13+
14+
-- Jaakko Keränen (skyjake) <[email protected]> Sun, 08 Nov 2020 17:11:46 +0200

debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11

debian/control

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Source: lagrange
2+
Section: net
3+
Priority: optional
4+
Maintainer: Jaakko Keränen (skyjake) <[email protected]>
5+
Build-Depends: cmake, debhelper (>=11~), libsdl2-dev, libssl-dev, libpcre3-dev, zlib1g-dev, libunistring-dev, libmpg123-dev
6+
Standards-Version: 4.1.4
7+
Homepage: https://gmi.skyjake.fi/lagrange/
8+
9+
Package: lagrange
10+
Architecture: any
11+
Multi-Arch: foreign
12+
Depends: ${misc:Depends}, ${shlibs:Depends}
13+
Description: Lagrange - A Beautiful Gemini Client
14+
Lagrange is a desktop GUI client for browsing Geminispace.
15+
It offers modern conveniences familiar from web browsers,
16+
such as smooth scrolling, inline image viewing, multiple
17+
tabs, visual themes, Unicode fonts, bookmarks, history,
18+
and page outlines.

debian/copyright

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: lagrange
3+
Upstream-Contact: Jaakko Keränen (skyjake) <[email protected]>
4+
Source: https://codeberg.org/skyjake/lagrange
5+
6+
Files: *
7+
Copyright: 2020 Jaakko Keränen
8+
License: BSD-2-Clause
9+
10+
Files: src/audio/stb_vorbic.c
11+
src/stb_image.h
12+
src/stb_truetype.h
13+
Copyright: 2007 Sean Barrett
14+
License: MIT

debian/patches/series

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# You must remove unused comment lines for the released package.

debian/rules

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/make -f
2+
export DH_VERBOSE = 1
3+
export DEB_BUILD_MAINT_OPTIONS=hardening=-format
4+
5+
%:
6+
dh $@
7+
8+
override_dh_auto_configure:
9+
cmake .. -DENABLE_WINDOWPOS_FIX=YES -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/../usr
10+
11+
override_dh_build_configure:
12+
cmake --build .

debian/source/format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/source/local-options

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#abort-on-upstream-changes
2+
#unapply-patches

debian/watch

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=3

0 commit comments

Comments
 (0)