mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 12:11:47 +01:00
build: add .deb package build process
This commit is contained in:
@@ -53,6 +53,8 @@
|
||||
packages = with pkgs; [
|
||||
# go (version is specified by overlay)
|
||||
go
|
||||
# Required for .deb build
|
||||
dpkg
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
15
justfile
15
justfile
@@ -25,6 +25,17 @@ linux-amd64:
|
||||
linux-arm64:
|
||||
GOOS="linux" GOARCH="arm64" go build -o build/spotiflac-cli-linux-arm64
|
||||
|
||||
[group("linux")]
|
||||
deb version:
|
||||
mkdir -p build/packages/usr/local/bin/
|
||||
cp -r packages/ build/
|
||||
|
||||
sed -i "s/1.0.0/{{version}}/g" build/packages/DEBIAN/control
|
||||
|
||||
GOOS="linux" GOARCH="amd64" go build -o build/packages/usr/local/bin/spotiflac-cli
|
||||
|
||||
dpkg-deb --build ./build/packages ./build
|
||||
|
||||
[group("windows")]
|
||||
windows: windows-amd64 windows-arm64
|
||||
|
||||
@@ -35,11 +46,11 @@ darwin: darwin-amd64 darwin-arm64
|
||||
linux: linux-amd64 linux-arm64
|
||||
|
||||
# Build for all platforms
|
||||
build: windows darwin linux
|
||||
build version: windows darwin linux (deb version)
|
||||
|
||||
# Push binaries to GitHub releases
|
||||
publish tag:
|
||||
gh release upload {{tag}} build/spotiflac-cli-*
|
||||
gh release upload --clobber {{tag}} build/spotiflac-cli*
|
||||
|
||||
clean:
|
||||
rm -rf build/
|
||||
|
||||
6
packages/DEBIAN/control
Normal file
6
packages/DEBIAN/control
Normal file
@@ -0,0 +1,6 @@
|
||||
Package: spotiflac-cli
|
||||
Version: 1.0.0
|
||||
Architecture: amd64
|
||||
Maintainer: Patrick Canal <patrickcanal3@gmail.com>
|
||||
Description: Spotify downloader
|
||||
Spotify downloader with playlist sync in mind.
|
||||
Reference in New Issue
Block a user