build: copy .icns file into Linux archive

This commit is contained in:
Gadfly 2024-04-30 21:58:09 +08:00
parent a5150edee0
commit e5049c04fc
No known key found for this signature in database
GPG key ID: 9128145F93CFC69C

View file

@ -8,10 +8,12 @@ rm -rf SourceGit *.tar.gz resources/deb/opt *.deb *.rpm
# Compile
dotnet publish ../src/SourceGit.csproj -c Release -r linux-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
mv SourceGit/SourceGit SourceGit/sourcegit
cp resources/app/App.icns SourceGit/sourcegit.icns
rm -f SourceGit/*.dbg
# General Linux archive
tar -zcvf sourcegit_${version}.linux-x64.tar.gz SourceGit
rm -f SourceGit/sourcegit.icns
# Debain/Ubuntu package
mkdir -p resources/deb/opt/sourcegit/