Merge pull request #101 from gadfly3173/fix/linux-tar

build: copy .icns file into Linux archive
This commit is contained in:
leo 2024-05-03 11:15:30 +08:00 committed by GitHub
commit df79e16f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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/