Skip to content
Merged
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
24 changes: 12 additions & 12 deletions .github/workflows/desktop_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ jobs:
- if: ${{ inputs.channel != 'staging' }}
run: |
DMG_FILE=$(find "apps/desktop/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/" -name "*.dmg" -type f)
cp "$DMG_FILE" "hyprnote.dmg"
aws s3 cp "hyprnote.dmg" \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote.dmg" \
cp "$DMG_FILE" "hyprnote-macos-aarch64.dmg"
aws s3 cp "hyprnote-macos-aarch64.dmg" \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote-macos-aarch64.dmg" \
--endpoint-url ${{ secrets.CLOUDFLARE_R2_ENDPOINT_URL }} \
--region auto
env:
Expand Down Expand Up @@ -224,9 +224,9 @@ jobs:
- if: ${{ inputs.channel != 'staging' }}
run: |
APPIMAGE_FILE=$(find "apps/desktop/src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/" -name "*.AppImage" -type f)
cp "$APPIMAGE_FILE" "hyprnote.AppImage"
aws s3 cp "hyprnote.AppImage" \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote.AppImage" \
cp "$APPIMAGE_FILE" "hyprnote-linux-x86_64.AppImage"
aws s3 cp "hyprnote-linux-x86_64.AppImage" \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote-linux-x86_64.AppImage" \
--endpoint-url ${{ secrets.CLOUDFLARE_R2_ENDPOINT_URL }} \
--region auto
env:
Expand Down Expand Up @@ -259,8 +259,8 @@ jobs:
- name: Download macOS DMG from S3
run: |
aws s3 cp \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote.dmg" \
"hyprnote.dmg" \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote-macos-aarch64.dmg" \
"hyprnote-macos-aarch64.dmg" \
--endpoint-url ${{ secrets.CLOUDFLARE_R2_ENDPOINT_URL }} \
--region auto
env:
Expand All @@ -270,8 +270,8 @@ jobs:
if: ${{ needs.build-linux.result == 'success' }}
run: |
aws s3 cp \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote.AppImage" \
"hyprnote.AppImage" \
"s3://hyprnote-build/desktop/${{ needs.compute-version.outputs.version }}/hyprnote-linux-x86_64.AppImage" \
"hyprnote-linux-x86_64.AppImage" \
--endpoint-url ${{ secrets.CLOUDFLARE_R2_ENDPOINT_URL }} \
--region auto
env:
Expand All @@ -289,12 +289,12 @@ jobs:
tag: desktop_v${{ needs.compute-version.outputs.version }}
name: desktop_v${{ needs.compute-version.outputs.version }}
body: "https://hyprnote.com/changelog/${{ needs.compute-version.outputs.version }}"
artifacts: "hyprnote.dmg"
artifacts: "hyprnote-macos-aarch64.dmg"
- name: Create GitHub release with macOS + Linux
if: ${{ needs.build-linux.result == 'success' }}
uses: ncipollo/release-action@v1
with:
tag: desktop_v${{ needs.compute-version.outputs.version }}
name: desktop_v${{ needs.compute-version.outputs.version }}
body: "https://hyprnote.com/changelog/${{ needs.compute-version.outputs.version }}"
artifacts: "hyprnote.dmg,hyprnote.AppImage"
artifacts: "hyprnote-macos-aarch64.dmg,hyprnote-linux-x86_64.AppImage"
3 changes: 2 additions & 1 deletion apps/web/content-collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ const changelog = defineCollection({
const tag = `desktop_v${version}`;

const downloads: Record<VersionPlatform, string> = {
"dmg-aarch64": `https://github.com/fastrepl/hyprnote/releases/download/${tag}/hyprnote.dmg`,
"dmg-aarch64": `https://github.com/fastrepl/hyprnote/releases/download/${tag}/hyprnote-macos-aarch64.dmg`,
"appimage-x86_64": `https://github.com/fastrepl/hyprnote/releases/download/${tag}/hyprnote-linux-x86_64.AppImage`,
};

return {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/scripts/versioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join } from "node:path";
type VersionChannel = "stable" | "nightly" | "staging";

// https://docs.crabnebula.dev/cloud/cli/upload-assets/#public-platform---public-platform
export type VersionPlatform = "dmg-aarch64";
export type VersionPlatform = "dmg-aarch64" | "appimage-x86_64";

export type VersionDownloads = Partial<Record<VersionPlatform, string>>;

Expand Down