68
68
&& apt-get update \
69
69
&& apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" gh && \
70
70
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
71
- REPO=https://github.com/AdityaGarg8 /tiny-dfr.git && \
72
- COMMIT_HASH=1369f66177d435b0ab3915825b82004afa17ec93 && \
73
- VERSION=0.3.1 -1 && \
71
+ REPO=https://github.com/AsahiLinux /tiny-dfr.git && \
72
+ COMMIT_HASH=7098879a2add51ad66b3776cb0734930ebd77e3c && \
73
+ VERSION=0.3.5 -1 && \
74
74
cat /repo/key | gpg --import && \
75
75
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" && \
76
76
git config --global user.name "github-actions[bot]" && \
@@ -88,14 +88,10 @@ jobs:
88
88
mkdir src && \
89
89
cd .. && \
90
90
cd .. && \
91
- mkdir -p ./etc/tiny-dfr && \
92
- cp ./share/tiny-dfr/config.toml ./etc/tiny-dfr/config.toml && \
93
91
cp -r ./etc ./deb && \
94
92
cp -r ./share ./deb/usr && \
95
93
cp ./target/release/tiny-dfr ./deb/usr/bin && \
96
- cp /repo/.github/scripts/touchbar ./deb/usr/bin && \
97
94
chmod a+x ./deb/usr/bin/tiny-dfr && \
98
- chmod a+x ./deb/usr/bin/touchbar && \
99
95
cd deb && \
100
96
mkdir DEBIAN && \
101
97
cd DEBIAN && \
@@ -105,23 +101,13 @@ jobs:
105
101
echo "Maintainer: Aditya Garg" >> control && \
106
102
echo "Architecture: amd64" >> control && \
107
103
echo "Description: Function row daemon for touchbar on Macs" >> control && \
108
- echo "Depends: systemd, dkms " >> control && \
104
+ echo "Depends: systemd" >> control && \
109
105
110
- echo "if [ -f /etc/tiny-dfr/config.toml ]" > preinst && \
111
- echo "then" >> preinst && \
112
- echo "cp /etc/tiny-dfr/config.toml /etc/tiny-dfr/config.toml.orj" >> preinst && \
113
- echo "fi" >> preinst && \
114
-
115
- echo "if [ -f /etc/tiny-dfr/config.toml.orj ]" > postinst && \
116
- echo "then" >> postinst && \
117
- echo "touchbar --restore" >> postinst && \
118
- echo "fi" >> postinst && \
119
- echo "systemctl enable --now tiny-dfr.service" >> postinst && \
106
+ echo "systemctl enable --now tiny-dfr.service" > postinst && \
120
107
echo "echo -e \"\\nYou may have to restart your Mac in case of a new installation\"" >> postinst && \
121
108
122
109
echo "systemctl disable --now tiny-dfr.service" >> prerm && \
123
110
124
- chmod 755 ./preinst && \
125
111
chmod 755 ./postinst && \
126
112
chmod 755 ./prerm && \
127
113
0 commit comments