-
Notifications
You must be signed in to change notification settings - Fork 27
/
.build.yml
47 lines (47 loc) · 1.59 KB
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: archlinux
repositories:
# https://todo.sr.ht/~sircmpwn/builds.sr.ht/260: need to hard-code mirror for multilib repo
multilib: "http://mirror.rackspace.com/archlinux/multilib/os/x86_64#c100346676634e80c940fb9e9c02ff419fecbe16"
packages:
- gzip
- libarchive
- libxkbcommon
- perl
- python
- python-docutils
- wget
# AHK build dependencies
- upx
- wine
- wine-gecko
- wine-mono
- xorg-server-xvfb
sources:
- https://github.com/jackrosenthal/threelayout
- "https://salsa.debian.org/installer-team/console-setup.git#d404b51bd3de0dca08651df581fb28753c41a0b5"
tasks:
- compile-readme: |
cd threelayout
rst2html --exit-status=warning README.rst >/tmp/README.html
- compile-ahk: |
wget -q "https://www.autohotkey.com/download/1.1/AutoHotkey_1.1.33.10.zip" -O ahk.zip
chksum="$(sha256sum ahk.zip | cut -d' ' -f1)"
[[ "${chksum}" == d25581597badcc5a5c0ffec68fcaf5dad6de18d14417aa39ec8ff4e938fca159 ]]
mkdir winbuild
cd winbuild
bsdtar xvf ~/ahk.zip
cd Compiler
cp ~/threelayout/windows/ahk/3l.ahk .
timeout -k 10 1m xvfb-run -a -d wine Ahk2Exe.exe /in 3l.ahk /out 3l.exe /base 'Unicode 32-bit.bin'
upx --best -o ~/3l.exe 3l.exe
- xkb-compile-keymap: |
cd threelayout
for variant in basic cros 3l-emacs; do
xkbcli compile-keymap --include-defaults --include linux/xkb --layout 3l --variant "${variant}" >/dev/null
done
- compile-linux-console: |
~/console-setup/Keyboard/ckbcomp -I"${HOME}/threelayout/linux/xkb/symbols" 3l >~/3l.map
gzip ~/3l.map
artifacts:
- 3l.exe
- 3l.map.gz