mirror of
https://github.com/house-of-vanity/mus-fuse.git
synced 2025-08-21 08:07:16 +00:00
Fix CI
This commit is contained in:
10
.github/workflows/PKGBUILD
vendored
10
.github/workflows/PKGBUILD
vendored
@@ -15,24 +15,26 @@ backup=('etc/mus-fuse.yml')
|
|||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
git describe --long --tags | awk -F '-' '{print $1}'| sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
echo git describe --long --tags | awk -F '-' '{print $1}'| sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$srcdir/$pkgname"
|
cd $pkgname-$pkgver
|
||||||
cargo fetch --target x86_64-unknown-linux-gnu
|
cargo fetch --target x86_64-unknown-linux-gnu
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname"
|
cd $pkgname-$pkgver
|
||||||
cargo build --release --frozen --all-targets
|
cargo build --release --frozen --all-targets
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname"
|
cd $pkgname-$pkgver
|
||||||
|
install=mus-fuse.install
|
||||||
install -Dt "$pkgdir/usr/bin" target/release/$pkgname
|
install -Dt "$pkgdir/usr/bin" target/release/$pkgname
|
||||||
install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md
|
install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md
|
||||||
install -Dt "$pkgdir/usr/lib/systemd/system" assets/$pkgname.service
|
install -Dt "$pkgdir/usr/lib/systemd/system" assets/$pkgname.service
|
||||||
mkdir -p "$pkgdir/etc"
|
mkdir -p "$pkgdir/etc"
|
||||||
cp -n assets/mus-fuse.yml "$pkgdir/etc/mus-fuse.yml"
|
cp -n assets/mus-fuse.yml "$pkgdir/etc/mus-fuse.yml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -20,12 +20,10 @@ jobs:
|
|||||||
uses: FFY00/build-arch-package@master
|
uses: FFY00/build-arch-package@master
|
||||||
with:
|
with:
|
||||||
PKGBUILD: $GITHUB_WORKSPACE/.github/workflows/PKGBUILD
|
PKGBUILD: $GITHUB_WORKSPACE/.github/workflows/PKGBUILD
|
||||||
OUTDIR: $HOME/arch-packages
|
OUTDIR: ./
|
||||||
- run: |
|
- run: pwd
|
||||||
pwd
|
- run: ls -l
|
||||||
ls -l
|
- run: mv ./*tar.xz mus-fuse-x86_64.tar.xz
|
||||||
ls -l $HOME/arch-packages/
|
|
||||||
- run: mv $HOME/arch-packages/*tar.xz mus-fuse-x86_64.tar.xz
|
|
||||||
- name: Upload Arch Package
|
- name: Upload Arch Package
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
17
debian/preinst
vendored
17
debian/preinst
vendored
@@ -1,10 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
if systemctl | grep -Fq 'mus-fuse'; then
|
post_install() {
|
||||||
sudo systemctl stop mus-fuse.service
|
|
||||||
fi
|
|
||||||
|
|
||||||
adduser --quiet --system --group --no-create-home --home /run/mus-fuse mus-fuse
|
if systemctl | grep -Fq 'mus-fuse'; then
|
||||||
mkdir -p /srv/mus-fuse
|
sudo systemctl stop mus-fuse.service
|
||||||
chown mus-fuse:mus-fuse /srv/mus-fuse
|
fi
|
||||||
|
|
||||||
|
sudo useradd --system --user-group --no-create-home --home-dir /run/mus-fuse mus-fuse
|
||||||
|
mkdir -p /srv/mus-fuse
|
||||||
|
chown mus-fuse:mus-fuse /srv/mus-fuse
|
||||||
|
echo ":: You need to uncomment 'user_allow_other' in /etc/fuse.conf"
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user