mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-27 23:25:00 +00:00
build: read version from VERSION file
This commit is contained in:
parent
27265dc465
commit
3a3c0e717f
6 changed files with 59 additions and 11 deletions
|
@ -1 +0,0 @@
|
|||
8.8
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
version=`cat ./VERSION`
|
||||
version=`cat ../VERSION`
|
||||
|
||||
# Cleanup
|
||||
rm -rf SourceGit *.tar.gz resources/deb/opt *.deb *.rpm
|
||||
|
@ -28,4 +28,4 @@ dpkg-deb --build resources/deb ./sourcegit_${version}-1_amd64.deb
|
|||
rpmbuild -bb --target=x86_64 resources/rpm/SPECS/build.spec --define "_topdir `pwd`/resources/rpm" --define "_version ${version}"
|
||||
mv resources/rpm/RPMS/x86_64/sourcegit-${version}-1.x86_64.rpm .
|
||||
|
||||
rm -rf SourceGit
|
||||
rm -rf SourceGit
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
version=`cat ./VERSION`
|
||||
version=`cat ../VERSION`
|
||||
|
||||
rm -rf SourceGit.app *.zip
|
||||
|
||||
|
@ -18,4 +18,4 @@ mkdir -p SourceGit.app/Contents/MacOS
|
|||
dotnet publish ../src/SourceGit.csproj -c Release -r osx-x64 -o SourceGit.app/Contents/MacOS -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
zip sourcegit_${version}.osx-x64.zip -r SourceGit.app -x "*/*\.dsym/*"
|
||||
|
||||
rm -rf SourceGit.app
|
||||
rm -rf SourceGit.app
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$version = Get-Content .\VERSION
|
||||
$version = Get-Content ..\VERSION
|
||||
|
||||
if (Test-Path SourceGit) {
|
||||
Remove-Item SourceGit -Recurse -Force
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue