Skip to content

Commit

Permalink
cleanup and path madness
Browse files Browse the repository at this point in the history
  • Loading branch information
nor0x committed Oct 18, 2023
1 parent 221c42f commit 1f2686a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
PP_PATH=$RUNNER_TEMP/build_pp.provisionprofile
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
#log variables
echo "CERTIFICATE_PATH=$CERTIFICATE_PATH"
echo "PP_PATH=$PP_PATH"
echo "KEYCHAIN_PATH=$KEYCHAIN_PATH"
# import certificate and provisioning profile from secrets
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-macos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cd ..
version=$(cat version.txt)
cd /Users/runner/work/Dots/Dots/src/

dotnet restore
echo "Building Dots for macOS arm64"
dotnet msbuild -t:BundleApp -property:Configuration=Release -p:UseAppHost=true -p:RuntimeIdentifier=osx-arm64
Expand All @@ -23,8 +25,10 @@ cp bin/Release/net8.0-macos/osx-x64/Dots.app/Contents/PkgInfo bin/Release/net8.0

echo "dittoing Dots for macOS x64"
cd /Users/runner/work/Dots/Dots/src/bin/Release/net8.0-macos/osx-x64/publish
macosx64file=$(echo Dots-$version-macos-x64.zip)
ditto -c -k --sequesterRsrc --keepParent Dots.app $macosx64file

echo "dittoing Dots for macOS arm64"
cd /Users/runner/work/Dots/Dots/src/bin/Release/net8.0-macos/osx-arm64/publish
macosarm64file=$(echo Dots-$version-macos-arm64.zip)
ditto -c -k --sequesterRsrc --keepParent Dots.app $macosarm64file
6 changes: 3 additions & 3 deletions scripts/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo "Building Dots for Windows x64"
dotnet publish "Dots.csproj" -c Release -f net8.0 -r win-x64

echo "zip Dots for Windows x64"
cd bin/Release/net8.0/win-x64/publish
cd D:/a/Dots/Dots/bin/Release/net8.0/win-x64/publish
7z a -tzip Dots-$version-win-x64.zip Dots.exe
windowsx64file=$(echo Dots-$version-win-x64.zip)
export windowsx64file
Expand All @@ -18,14 +18,14 @@ echo "Building Dots for Windows x86"
dotnet publish "Dots.csproj" -c Release -f net8.0 -r win-x86

echo "zip Dots for Windows x86"
cd ../win-x86/publish
cd D:/a/Dots/Dots/bin/Release/net8.0/win-x86/publish
7z a -tzip Dots-$version-win-x86.zip Dots.exe
windowsx86file=$(echo Dots-$version-win-x86.zip)
export windowsx86file

dotnet publish "Dots.csproj" -c Release -f net8.0 -r win-arm64

echo "zip Dots for Windows arm64"
cd ../win-arm64/publish
cd D:/a/Dots/Dots/bin/Release/net8.0/win-arm64/publish
7z a -tzip Dots-$version-win-arm64.zip Dots.exe
export windowsarm64file

0 comments on commit 1f2686a

Please sign in to comment.