From 27265dc465b0ef8c38160520fe64cee6d2792efe Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 16 Apr 2024 20:32:18 +0800 Subject: [PATCH] fix: use sed to replace version in plist failed on macOS --- build/build.osx.command | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/build.osx.command b/build/build.osx.command index 5e5beb70..df3222b0 100644 --- a/build/build.osx.command +++ b/build/build.osx.command @@ -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