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
2 changes: 2 additions & 0 deletions .github/workflows/desktop-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
fi
env:
PIZZA_VENDOR_TOOL_TARGETS: current
# Keep the custom DMG background and icon positions on macOS CI.
TAURI_BUNDLER_DMG_IGNORE_CI: 'true'
LABEL: ${{ matrix.label }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/desktop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pizza-gui"
version = "0.5.5"
version = "0.5.6"
description = "Pizza desktop GUI"
edition = "2021"
rust-version = "1.90"
Expand Down
28 changes: 28 additions & 0 deletions apps/desktop/installer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# macOS installer artwork

`background.png` is the committed, Retina-resolution DMG background (720 × 520
points, 1440 × 1040 pixels). Normal builds use it directly and need no additional
image tools or generation step.

All installation instructions appear in English first, with a smaller Chinese
translation underneath. Keep both languages together when editing the artwork.
The layout starts directly with the drag-to-install step and leaves generous
space around the icons. The second step is a single bilingual instruction for
first-time installations, followed by the terminal command.

To update the artwork on macOS, edit and run:

```sh
swift scripts/generate-dmg-background.swift
```

The app and Applications folder are real Finder icons, positioned by
`../tauri.macos.conf.json`. Keep their positions and the background arrow aligned.
The window height includes 28 points for Finder's title bar.

The bottom panel tells users to copy Pizza into Applications, then manually run
`xattr -cr /Applications/Pizza.app` in Terminal before opening it for the first
time. This command is displayed as instructions; the installer does not run it.

The release workflow sets `TAURI_BUNDLER_DMG_IGNORE_CI=true` because Tauri normally
skips Finder background and icon layout customization when `CI=true`.
Binary file added apps/desktop/installer/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/desktop/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "Pizza",
"version": "0.5.5",
"version": "0.5.6",
"identifier": "ai.pizza.gui",
"build": {
"beforeDevCommand": {
Expand Down
17 changes: 17 additions & 0 deletions apps/desktop/tauri.macos.conf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
{
"bundle": {
"macOS": {
"dmg": {
"background": "installer/background.png",
"windowSize": {
"width": 720,
"height": 548
},
"appPosition": {
"x": 190,
"y": 215
},
"applicationFolderPosition": {
"x": 530,
"y": 215
}
}
},
"resources": {
"../../dist/pizza": "pizza"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pizza-web",
"private": true,
"version": "0.5.5",
"version": "0.5.6",
"type": "module",
"scripts": {
"dev": "node scripts/free-port.mjs && vite",
Expand Down
307 changes: 133 additions & 174 deletions bun.lock

Large diffs are not rendered by default.

Loading
Loading