mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: use sed to replace version in plist failed on macOS
This commit is contained in:
parent
b926dc055d
commit
27265dc465
1 changed files with 1 additions and 2 deletions
|
@ -5,9 +5,8 @@ version=`cat ./VERSION`
|
|||
rm -rf SourceGit.app *.zip
|
||||
|
||||
mkdir -p SourceGit.app/Contents/Resources
|
||||
cp resources/app/App.plist SourceGit.app/Contents/Info.plist
|
||||
cp resources/app/App.icns SourceGit.app/Contents/Resources/App.icns
|
||||
sed -i "s/SOURCE_GIT_VERSION/${version}/g" SourceGit.app/Contents/Info.plist
|
||||
sed "s/SOURCE_GIT_VERSION/${version}/g" resources/app/App.plist > SourceGit.app/Contents/Info.plist
|
||||
|
||||
mkdir -p SourceGit.app/Contents/MacOS
|
||||
dotnet publish ../src/SourceGit.csproj -c Release -r osx-arm64 -o SourceGit.app/Contents/MacOS -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
|
|
Loading…
Reference in a new issue