Skip to content

Commit 6b3a4f2

Browse files
authored
tiny-dfr 0.3.5
1 parent aa4acfb commit 6b3a4f2

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/tiny-dfr.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ jobs:
6868
&& apt-get update \
6969
&& apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" gh && \
7070
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 && \
7474
cat /repo/key | gpg --import && \
7575
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" && \
7676
git config --global user.name "github-actions[bot]" && \
@@ -88,14 +88,10 @@ jobs:
8888
mkdir src && \
8989
cd .. && \
9090
cd .. && \
91-
mkdir -p ./etc/tiny-dfr && \
92-
cp ./share/tiny-dfr/config.toml ./etc/tiny-dfr/config.toml && \
9391
cp -r ./etc ./deb && \
9492
cp -r ./share ./deb/usr && \
9593
cp ./target/release/tiny-dfr ./deb/usr/bin && \
96-
cp /repo/.github/scripts/touchbar ./deb/usr/bin && \
9794
chmod a+x ./deb/usr/bin/tiny-dfr && \
98-
chmod a+x ./deb/usr/bin/touchbar && \
9995
cd deb && \
10096
mkdir DEBIAN && \
10197
cd DEBIAN && \
@@ -105,23 +101,13 @@ jobs:
105101
echo "Maintainer: Aditya Garg" >> control && \
106102
echo "Architecture: amd64" >> control && \
107103
echo "Description: Function row daemon for touchbar on Macs" >> control && \
108-
echo "Depends: systemd, dkms" >> control && \
104+
echo "Depends: systemd" >> control && \
109105
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 && \
120107
echo "echo -e \"\\nYou may have to restart your Mac in case of a new installation\"" >> postinst && \
121108
122109
echo "systemctl disable --now tiny-dfr.service" >> prerm && \
123110
124-
chmod 755 ./preinst && \
125111
chmod 755 ./postinst && \
126112
chmod 755 ./prerm && \
127113

0 commit comments

Comments
 (0)