Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/package-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@ jobs:
Stardrop-win-x64.zip
Stardrop-linux-x64.zip
Stardrop-osx-x64.zip
Stardrop-osx-arm64.zip
35 changes: 33 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,38 @@ env:
run-name: "[${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || 'Default Branch' }}] Packaging"

jobs:
package-macos:
package-macos-arm64:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'generate packages')
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH }}
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
- run: mkdir -p path/to/release-artifacts
- name: Publish (MacOS - Creating)
run: |
mkdir -p "${{ env.OUTPUT_PATH_MAC }}/Stardrop.app/Contents/MacOS"
mkdir -p "${{ env.OUTPUT_PATH_MAC }}/Stardrop.app/Contents/Resources"
dotnet publish "${{ env.WORKING_DIRECTORY }}" --output "${{ env.OUTPUT_PATH_MAC }}/Stardrop.app/Contents/MacOS" --configuration "${{ env.CONFIGURATION }}" --runtime "osx-arm64" --framework "net8.0" --self-contained
- name: Publish (MacOS - Packaging)
working-directory: "${{ env.OUTPUT_PATH_MAC }}/Stardrop.app"
run: |
cp ${GITHUB_WORKSPACE}/Stardrop/Assets/Info.plist "Contents/Info.plist"
cp ${GITHUB_WORKSPACE}/Stardrop/Assets/Stardrop.icns "Contents/Resources/Stardrop.icns"

chmod +x "Contents/MacOS/Stardrop"
(cd ../ && codesign --force --deep -s - Stardrop.app)

(cd ../ && zip -r ${GITHUB_WORKSPACE}/Stardrop-osx-arm64.zip "Stardrop.app")
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-macos-arm64
path: |
Stardrop-osx-arm64.zip
package-macos-x64:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'generate packages')
runs-on: macos-latest

Expand Down Expand Up @@ -59,7 +90,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-macos
name: release-artifacts-macos-x64
path: |
Stardrop-osx-x64.zip
package-linux:
Expand Down
7 changes: 0 additions & 7 deletions Stardrop/Stardrop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
<PublishSingleFile>true</PublishSingleFile>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath></OutputPath>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
<Content Include="Themes\**" CopyToOutputDirectory="PreserveNewest" />
Expand Down