mirror of
https://github.com/house-of-vanity/mus-fuse.git
synced 2025-07-06 21:24:09 +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() {
|
||||
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() {
|
||||
cd "$srcdir/$pkgname"
|
||||
cd $pkgname-$pkgver
|
||||
cargo fetch --target x86_64-unknown-linux-gnu
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname"
|
||||
cd $pkgname-$pkgver
|
||||
cargo build --release --frozen --all-targets
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname"
|
||||
cd $pkgname-$pkgver
|
||||
install=mus-fuse.install
|
||||
install -Dt "$pkgdir/usr/bin" target/release/$pkgname
|
||||
install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md
|
||||
install -Dt "$pkgdir/usr/lib/systemd/system" assets/$pkgname.service
|
||||
mkdir -p "$pkgdir/etc"
|
||||
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
|
||||
with:
|
||||
PKGBUILD: $GITHUB_WORKSPACE/.github/workflows/PKGBUILD
|
||||
OUTDIR: $HOME/arch-packages
|
||||
- run: |
|
||||
pwd
|
||||
ls -l
|
||||
ls -l $HOME/arch-packages/
|
||||
- run: mv $HOME/arch-packages/*tar.xz mus-fuse-x86_64.tar.xz
|
||||
OUTDIR: ./
|
||||
- run: pwd
|
||||
- run: ls -l
|
||||
- run: mv ./*tar.xz mus-fuse-x86_64.tar.xz
|
||||
- name: Upload Arch Package
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
|
17
debian/preinst
vendored
17
debian/preinst
vendored
@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
if systemctl | grep -Fq 'mus-fuse'; then
|
||||
sudo systemctl stop mus-fuse.service
|
||||
fi
|
||||
post_install() {
|
||||
|
||||
adduser --quiet --system --group --no-create-home --home /run/mus-fuse mus-fuse
|
||||
mkdir -p /srv/mus-fuse
|
||||
chown mus-fuse:mus-fuse /srv/mus-fuse
|
||||
if systemctl | grep -Fq 'mus-fuse'; then
|
||||
sudo systemctl stop mus-fuse.service
|
||||
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