Skip to content

Commit 90309fa

Browse files
Merge pull request #98 from probonopd/master
Build Birdfont on Travis CI, generate and publish AppImage, closes #55, closes #77
2 parents 6aff832 + bae1770 commit 90309fa

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: cpp
2+
compiler: gcc
3+
sudo: require
4+
dist: xenial
5+
6+
before_install:
7+
- sudo apt-get update -qq
8+
9+
install:
10+
- sudo apt-get -y install valac python3-doit libxmlbird-dev libgee-0.8-dev libglib2.0-dev libgtk-3-dev libwebkit2gtk-4.0-dev libnotify-dev libsqlite3-dev
11+
12+
script:
13+
- ./configure --prefix=/usr
14+
- ./build.py
15+
- ./install.py -d appdir
16+
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
17+
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
18+
- ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract 'usr/bin/patchelf'
19+
- squashfs-root/usr/bin/patchelf --set-rpath '$ORIGIN' appdir/usr/lib/x86_64-linux-gnu/libbirdfont.so.*.*
20+
- ( cd appdir/usr/lib/ ; ln -s x86_64-linux-gnu/lib* . )
21+
- find appdir/
22+
- export LD_LIBRARY_PATH=./appdir/usr/lib:./appdir/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
23+
- |2
24+
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage \
25+
-executable=appdir/usr/bin/birdfont-autotrace \
26+
-executable=appdir/usr/bin/birdfont-export \
27+
-executable=appdir/usr/bin/birdfont-import
28+
29+
after_success:
30+
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
31+
- bash upload.sh Birdfont*.AppImage*
32+
33+
branches:
34+
except:
35+
- # Do not build tags that we create when we upload to GitHub Releases
36+
- /^(?i:continuous)/

libbirdfont/SearchPaths.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public class SearchPaths {
5050
if (f.query_exists ()) return f;
5151

5252
f = get_file (folder + "/../", name);
53+
54+
if (f.query_exists ()) return f;
55+
56+
f = get_file (folder + "/../share/birdfont/", name);
5357
if (f.query_exists ()) return f;
5458
}
5559
}

resources/linux/birdfont.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Terminal=false
1010
Type=Application
1111
GenericName=Font Editor
1212
Categories=Graphics;VectorGraphics;
13-
Keywords=Font
14-
Keywords[ja]=フォント
13+
Keywords=Font;
14+
Keywords[ja]=フォント;

0 commit comments

Comments
 (0)