Skip to content

Commit

Permalink
Merge branch 'dev' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 8, 2020
2 parents 44686f9 + e1fa097 commit edc5194
Show file tree
Hide file tree
Showing 13 changed files with 167 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: packages

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

env:
RELEASE_VERSION: 0.8.0

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
submodules: 'recursive'
- name: install-dependencies
run: |
git submodule sync
sudo apt-get update -qq -y
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
- name: import-signing-key
run: |
mkdir -p ~/.gnupg/
printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key
gpg --import ~/.gnupg/private.key
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
- name: package-build
run: |
git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz
tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
cd lagrange-${RELEASE_VERSION}
debuild
cd ..
mkdir -p artifacts
mv *deb artifacts/
shell: bash
- name: plain-build
run: |
mkdir builddir
cd builddir
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
mkdir -p ../artifacts/
tar -czvf ../artifacts/lagrange-${RELEASE_VERSION}-linux-amd64.tar.gz lagrange
cd ..
- name: upload-artifact
uses: actions/upload-artifact@v2
with:
name: ubuntu-latest
path: artifacts
debian_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
submodules: 'recursive'
- name: get-repo-name
run: |
echo "REPOSITORY_NAME="$(echo $GITHUB_REPOSITORY | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV
shell: bash
- name: install-dependencies
run: |
git submodule sync
- name: debian_docker
uses: ./.github/workflows/docker-debian/
- name: upload-debian-artifact
uses: actions/upload-artifact@v2
with:
name: debian
path: /home/runner/work/${{env.REPOSITORY_NAME}}/${{env.REPOSITORY_NAME}}/artifacts
4 changes: 4 additions & 0 deletions .github/workflows/docker-debian/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: 'docker'
runs:
using: 'docker'
image: 'debian-dockerfile'
8 changes: 8 additions & 0 deletions .github/workflows/docker-debian/debian-dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Container image that runs your code
FROM debian:buster

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
14 changes: 14 additions & 0 deletions .github/workflows/docker-debian/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh -xv

apt-get update -qq -y
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
git submodule sync

git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz
tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
cd lagrange-${RELEASE_VERSION}
debuild
cd ..
mkdir -p artifacts
mv *deb artifacts/
14 changes: 14 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
lagrange (0.8.0-1) unstable; urgency=low

* Added support for Gopher.
* Added support for the full palette of 8-bit ANSI foreground colors.
* Added option to disable smooth scrolling.
* Added button to manually set server certificate as trusted (if the certificate is valid but untrusted).
* Added keybindings for Back/Forward navigation.
* Added a context menu item for opening HTTP links in the default browser even when a proxy is configured.
* Revised identity creation dialog: changed field order, added warning about temporary identities not being saved.
* Ctrl+Click opens tab in background, Shift+Ctrl+Click opens as foreground tab. The same modifier keys work with keyboard navigation.
* Improved word wrapping of emoticons (:D).
* 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.

-- Jaakko Keränen (skyjake) <[email protected]> Sun, 08 Nov 2020 17:11:46 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
18 changes: 18 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Source: lagrange
Section: net
Priority: optional
Maintainer: Jaakko Keränen (skyjake) <[email protected]>
Build-Depends: cmake, debhelper (>=11~), libsdl2-dev, libssl-dev, libpcre3-dev, zlib1g-dev, libunistring-dev, libmpg123-dev
Standards-Version: 4.1.4
Homepage: https://gmi.skyjake.fi/lagrange/

Package: lagrange
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Lagrange - A Beautiful Gemini Client
Lagrange is a desktop GUI client for browsing Geminispace.
It offers modern conveniences familiar from web browsers,
such as smooth scrolling, inline image viewing, multiple
tabs, visual themes, Unicode fonts, bookmarks, history,
and page outlines.
14 changes: 14 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lagrange
Upstream-Contact: Jaakko Keränen (skyjake) <[email protected]>
Source: https://codeberg.org/skyjake/lagrange

Files: *
Copyright: 2020 Jaakko Keränen
License: BSD-2-Clause

Files: src/audio/stb_vorbic.c
src/stb_image.h
src/stb_truetype.h
Copyright: 2007 Sean Barrett
License: MIT
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# You must remove unused comment lines for the released package.
12 changes: 12 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS=hardening=-format

%:
dh $@

override_dh_auto_configure:
cmake .. -DENABLE_WINDOWPOS_FIX=YES -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/../usr

override_dh_build_configure:
cmake --build .
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/source/local-options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#abort-on-upstream-changes
#unapply-patches
1 change: 1 addition & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=3

0 comments on commit edc5194

Please sign in to comment.