build: refactor build scripts

use right way to include symlinks and some other minor changes
This commit is contained in:
Aikawa Yataro 2024-08-02 20:49:08 +00:00
parent 646f7f90cf
commit 6bea4b42a2
No known key found for this signature in database
GPG key ID: 1C5D95FB10179404
5 changed files with 19 additions and 28 deletions

View file

@ -16,12 +16,13 @@ cd ../../
# Debain/Ubuntu package
mkdir -p resources/deb/opt/sourcegit/
mkdir -p resources/deb/usr/bin
mkdir -p resources/deb/usr/share/applications
mkdir -p resources/deb/usr/share/icons
cp -f SourceGit/* resources/deb/opt/sourcegit/
ln -sf ../../opt/sourcegit/sourcegit resources/deb/usr/bin
cp -r resources/_common/applications resources/deb/usr/share/
cp -r resources/_common/icons resources/deb/usr/share/
chmod +x -R resources/deb/opt/sourcegit
sed -i "2s/.*/Version: ${version}/g" resources/deb/DEBIAN/control
dpkg-deb --build resources/deb ./sourcegit_${version}-1_amd64.deb