mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 17:24:59 +00:00
feature: add a deb build script for Linux
This commit is contained in:
parent
66215cfa9e
commit
ebf139de68
7 changed files with 30 additions and 11 deletions
14
build/build.deb.sh
Normal file
14
build/build.deb.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm -rf SourceGit resources/deb/opt
|
||||
dotnet publish ../src/SourceGit.csproj -c Release -r linux-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
|
||||
mkdir -p resources/deb/opt/sourcegit
|
||||
mv SourceGit/SourceGit resources/deb/opt/sourcegit/sourcegit
|
||||
mv SourceGit/*.so resources/deb/opt/sourcegit/
|
||||
|
||||
chmod -R 755 resources/deb
|
||||
|
||||
rm -rf SourceGit
|
||||
|
||||
sudo dpkg-deb --build resources/deb
|
Loading…
Add table
Add a link
Reference in a new issue