Skip to content

Commit

Permalink
fixes sed command
Browse files Browse the repository at this point in the history
  • Loading branch information
nor0x committed Oct 19, 2023
1 parent c12a72f commit 9c49197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,8 @@ jobs:
- name: run housekeeping scripts
shell: bash
run: |
cd $GITHUB_WORKSPACE
version=$(cat version.txt)
echo "Version is now $version"
cd $GITHUB_WORKSPACE/src
sed -i '' "s/CFBundleVersion>.*</CFBundleVersion>$version</" Dots.csproj
sed -i '' "s/CFBundleShortVersionString>.*</CFBundleShortVersionString>$version</" Dots.csproj
sed -i '' "s/Version>.*</Version>$version</" Dots.csproj
echo "Version is now $version"
echo "Setting up file names"
macosx64file=$(echo Dots-$version-macos-x64.zip)
macosarm64file=$(echo Dots-$version-macos-arm64.zip)
windowsx86file=$(echo Dots-$version-win-x86.zip)
windowsx64file=$(echo Dots-$version-win-x64.zip)
windowsarm64file=$(echo Dots-$version-win-arm64.zip)
echo "filenames: $macosx64file $macosarm64file $windowsx86file $windowsx64file $windowsarm64file"
cd $GITHUB_WORKSPACE/scripts
bash housekeeping.sh
- name: run build scripts
run: |
cd $GITHUB_WORKSPACE/scripts
Expand Down
8 changes: 5 additions & 3 deletions scripts/housekeeping.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
cd ..
version=$(cat version.txt)
cd src
sed -i '' "s/CFBundleVersion>.*</CFBundleVersion>$version</" Dots.csproj
sed -i '' "s/CFBundleShortVersionString>.*</CFBundleShortVersionString>$version</" Dots.csproj
sed -i '' "s/Version>.*</Version>$version</" Dots.csproj


sed -i Dots.csproj -e "s/CFBundleVersion>.*</CFBundleVersion>$version</"
sed -i Dots.csproj -e "s/CFBundleShortVersionString>.*</CFBundleShortVersionString>$version</"
sed -i Dots.csproj -e "s/Version>.*</Version>$version</"

echo "Version is now $version"
echo "Setting up file names"
Expand Down

0 comments on commit 9c49197

Please sign in to comment.