@getcortexlabs/create-mavis 0.1.0-rc.12.1 → 0.1.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/package.json +1 -1
- package/src/adapters.mjs +76 -0
- package/src/add-target.mjs +5 -0
- package/src/capabilities.mjs +626 -0
- package/src/cli.mjs +47 -12
- package/src/doctor.mjs +92 -25
- package/src/macos.mjs +276 -0
- package/src/package-manager.mjs +12 -4
- package/src/portability.mjs +6 -1
- package/src/presets.mjs +15 -81
- package/src/scaffold.mjs +15 -3
- package/src/ui.mjs +123 -61
- package/templates/macos/examples/tasks/shared/TaskDetail.lite.tsx +57 -0
- package/templates/macos/examples/tasks/shared/TaskRow.lite.tsx +33 -0
- package/templates/macos/examples/tasks/shared/Tasks.lite.tsx +251 -0
- package/templates/macos/examples/tasks/shared/types.ts +9 -0
- package/templates/macos/mobile/src/App.vue +12 -0
- package/templates/macos/mobile/src/app.ts +7 -0
- package/templates/macos/native/Package.swift +17 -0
- package/templates/macos/native/Sources/MavisDesktop/App.swift +20 -0
- package/templates/macos/root/tsconfig.json +14 -0
- package/templates/macos/scripts/generate.mjs +36 -0
- package/templates/macos/scripts/macos.mjs +56 -0
- package/templates/macos/scripts/portable/emit-swift.mjs +1287 -0
- package/templates/macos/scripts/portable/emit-vue.mjs +615 -0
- package/templates/macos/scripts/portable/index.mjs +95 -0
- package/templates/macos/scripts/portable/model.mjs +1441 -0
- package/templates/macos/scripts/portable/program.mjs +163 -0
- package/templates/macos/shared/Welcome.lite.tsx +42 -0
- package/templates/macos/web/index.html +12 -0
- package/templates/macos/web/src/main.js +39 -0
- package/templates/macos/web/src/style.css +13 -0
- package/templates/macos/web/vite.config.mjs +3 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { useStore, useRef, Show, For } from '@builder.io/mitosis'
|
|
2
|
+
import type { Filter, Task } from './types'
|
|
3
|
+
import TaskRow from './TaskRow.lite'
|
|
4
|
+
import TaskDetail from './TaskDetail.lite'
|
|
5
|
+
|
|
6
|
+
// A small task manager: one source for every target. Tasks live in memory for the session.
|
|
7
|
+
export default function Tasks() {
|
|
8
|
+
const titleRef = useRef<MavisFieldRef>(null)
|
|
9
|
+
const state = useStore({
|
|
10
|
+
tasks: [
|
|
11
|
+
{
|
|
12
|
+
id: 'task1',
|
|
13
|
+
title: 'Sketch the launch page',
|
|
14
|
+
notes: 'Hero, pricing and one honest screenshot.',
|
|
15
|
+
priority: 'high',
|
|
16
|
+
done: false,
|
|
17
|
+
},
|
|
18
|
+
{ id: 'task2', title: 'Reply to Noor', notes: '', priority: 'normal', done: true },
|
|
19
|
+
{
|
|
20
|
+
id: 'task3',
|
|
21
|
+
title: 'Book the studio',
|
|
22
|
+
notes: 'Thursday afternoon works best.',
|
|
23
|
+
priority: 'low',
|
|
24
|
+
done: false,
|
|
25
|
+
},
|
|
26
|
+
] as Task[],
|
|
27
|
+
blank: { id: '', title: '', notes: '', priority: 'normal', done: false } as Task,
|
|
28
|
+
priorities: [
|
|
29
|
+
{ value: 'low', label: 'Low' },
|
|
30
|
+
{ value: 'normal', label: 'Normal' },
|
|
31
|
+
{ value: 'high', label: 'High' },
|
|
32
|
+
] as SelectOption[],
|
|
33
|
+
filter: 'all' as Filter,
|
|
34
|
+
selected: 'task1' as string | undefined,
|
|
35
|
+
count: 3,
|
|
36
|
+
title: '',
|
|
37
|
+
notes: '',
|
|
38
|
+
priority: 'normal',
|
|
39
|
+
submitted: false,
|
|
40
|
+
get visible(): Task[] {
|
|
41
|
+
return state.tasks.filter(
|
|
42
|
+
(task) => state.filter === 'all' || (state.filter === 'done') === task.done,
|
|
43
|
+
)
|
|
44
|
+
},
|
|
45
|
+
get done(): number {
|
|
46
|
+
return state.tasks.filter((task) => task.done).length
|
|
47
|
+
},
|
|
48
|
+
get summary(): string {
|
|
49
|
+
return `${state.tasks.length - state.done} open · ${state.done} done`
|
|
50
|
+
},
|
|
51
|
+
get current(): Task {
|
|
52
|
+
return state.tasks.find((task) => task.id === state.selected) ?? state.blank
|
|
53
|
+
},
|
|
54
|
+
get hasCurrent(): boolean {
|
|
55
|
+
return state.tasks.some((task) => task.id === state.selected)
|
|
56
|
+
},
|
|
57
|
+
get position(): number {
|
|
58
|
+
return state.visible.findIndex((task) => task.id === state.selected)
|
|
59
|
+
},
|
|
60
|
+
get titleError(): string {
|
|
61
|
+
return state.submitted && state.title.trim() === '' ? 'Give the task a title' : ''
|
|
62
|
+
},
|
|
63
|
+
compose() {
|
|
64
|
+
titleRef.focus()
|
|
65
|
+
},
|
|
66
|
+
add() {
|
|
67
|
+
state.submitted = true
|
|
68
|
+
if (state.titleError !== '') {
|
|
69
|
+
titleRef.focus()
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
state.count += 1
|
|
73
|
+
state.tasks.unshift({
|
|
74
|
+
id: `task${state.count}`,
|
|
75
|
+
title: state.title.trim(),
|
|
76
|
+
notes: state.notes,
|
|
77
|
+
priority: state.priority,
|
|
78
|
+
done: false,
|
|
79
|
+
})
|
|
80
|
+
state.selected = `task${state.count}`
|
|
81
|
+
// A new task is open: leave the Done filter so it shows up.
|
|
82
|
+
if (state.filter === 'done') state.filter = 'all'
|
|
83
|
+
state.title = ''
|
|
84
|
+
state.notes = ''
|
|
85
|
+
state.priority = 'normal'
|
|
86
|
+
state.submitted = false
|
|
87
|
+
},
|
|
88
|
+
toggle() {
|
|
89
|
+
state.tasks = state.tasks.map((task) =>
|
|
90
|
+
task.id === state.selected ? { ...task, done: !task.done } : task,
|
|
91
|
+
)
|
|
92
|
+
},
|
|
93
|
+
rename(title: string) {
|
|
94
|
+
state.tasks = state.tasks.map((task) =>
|
|
95
|
+
task.id === state.selected ? { ...task, title } : task,
|
|
96
|
+
)
|
|
97
|
+
},
|
|
98
|
+
annotate(notes: string) {
|
|
99
|
+
state.tasks = state.tasks.map((task) =>
|
|
100
|
+
task.id === state.selected ? { ...task, notes } : task,
|
|
101
|
+
)
|
|
102
|
+
},
|
|
103
|
+
prioritize(priority: string) {
|
|
104
|
+
state.tasks = state.tasks.map((task) =>
|
|
105
|
+
task.id === state.selected ? { ...task, priority } : task,
|
|
106
|
+
)
|
|
107
|
+
},
|
|
108
|
+
move(by: number) {
|
|
109
|
+
// Swap places with the neighbour on screen, also when a filter hides tasks in between.
|
|
110
|
+
const task = state.visible[state.position]
|
|
111
|
+
const other = state.visible[state.position + by]
|
|
112
|
+
if (task === undefined) return
|
|
113
|
+
if (other === undefined) return
|
|
114
|
+
const from = state.tasks.findIndex((item) => item.id === task.id)
|
|
115
|
+
const to = state.tasks.findIndex((item) => item.id === other.id)
|
|
116
|
+
state.tasks.splice(from, 1)
|
|
117
|
+
state.tasks.splice(to, 0, task)
|
|
118
|
+
},
|
|
119
|
+
remove() {
|
|
120
|
+
const index = state.tasks.findIndex((task) => task.id === state.selected)
|
|
121
|
+
if (index < 0) return
|
|
122
|
+
// The neighbour on screen takes the selection.
|
|
123
|
+
const next = state.visible[state.position + 1] ?? state.visible[state.position - 1]
|
|
124
|
+
state.tasks.splice(index, 1)
|
|
125
|
+
state.selected = next?.id
|
|
126
|
+
},
|
|
127
|
+
step(key: string) {
|
|
128
|
+
const by = key === 'ArrowDown' ? 1 : key === 'ArrowUp' ? -1 : 0
|
|
129
|
+
const task =
|
|
130
|
+
state.visible[Math.max(0, Math.min(state.position + by, state.visible.length - 1))]
|
|
131
|
+
if (task !== undefined) state.selected = task.id
|
|
132
|
+
},
|
|
133
|
+
})
|
|
134
|
+
return (
|
|
135
|
+
<MColumn gap="lg">
|
|
136
|
+
<MColumn gap="xs">
|
|
137
|
+
<MText variant="title">Tasks</MText>
|
|
138
|
+
<MText tone="muted">{state.summary}</MText>
|
|
139
|
+
</MColumn>
|
|
140
|
+
<MRow gap="sm">
|
|
141
|
+
<MButton text="New task" shortcut="mod+k" onClick={() => state.compose()} />
|
|
142
|
+
<MButton
|
|
143
|
+
text={state.current.done ? 'Reopen' : 'Complete'}
|
|
144
|
+
variant="secondary"
|
|
145
|
+
shortcut="mod+Enter"
|
|
146
|
+
disabled={!state.hasCurrent}
|
|
147
|
+
onClick={() => state.toggle()}
|
|
148
|
+
/>
|
|
149
|
+
<MButton
|
|
150
|
+
text="Delete"
|
|
151
|
+
variant="secondary"
|
|
152
|
+
shortcut="mod+d"
|
|
153
|
+
disabled={!state.hasCurrent}
|
|
154
|
+
onClick={() => state.remove()}
|
|
155
|
+
/>
|
|
156
|
+
</MRow>
|
|
157
|
+
<MGrid gap="lg" columns={2} minColumnWidth={320}>
|
|
158
|
+
<MColumn gap="md">
|
|
159
|
+
<MRow gap="sm">
|
|
160
|
+
<MButton
|
|
161
|
+
text={`All (${state.tasks.length})`}
|
|
162
|
+
variant={state.filter === 'all' ? 'primary' : 'secondary'}
|
|
163
|
+
onClick={() => (state.filter = 'all')}
|
|
164
|
+
/>
|
|
165
|
+
<MButton
|
|
166
|
+
text={`Open (${state.tasks.length - state.done})`}
|
|
167
|
+
variant={state.filter === 'open' ? 'primary' : 'secondary'}
|
|
168
|
+
onClick={() => (state.filter = 'open')}
|
|
169
|
+
/>
|
|
170
|
+
<MButton
|
|
171
|
+
text={`Done (${state.done})`}
|
|
172
|
+
variant={state.filter === 'done' ? 'primary' : 'secondary'}
|
|
173
|
+
onClick={() => (state.filter = 'done')}
|
|
174
|
+
/>
|
|
175
|
+
</MRow>
|
|
176
|
+
<Show
|
|
177
|
+
when={state.tasks.length > 0}
|
|
178
|
+
else={<MText tone="muted">No tasks yet. Add the first one.</MText>}
|
|
179
|
+
>
|
|
180
|
+
<Show
|
|
181
|
+
when={state.visible.length > 0}
|
|
182
|
+
else={<MText tone="muted">Nothing here. Try another filter.</MText>}
|
|
183
|
+
>
|
|
184
|
+
<MColumn gap="sm" label="Tasks" onKeyDown={(key) => state.step(key)}>
|
|
185
|
+
<For each={state.visible} animate>
|
|
186
|
+
{(task) => (
|
|
187
|
+
<TaskRow
|
|
188
|
+
key={task.id}
|
|
189
|
+
task={task}
|
|
190
|
+
selected={task.id === state.selected}
|
|
191
|
+
onSelect={(id) => (state.selected = id)}
|
|
192
|
+
/>
|
|
193
|
+
)}
|
|
194
|
+
</For>
|
|
195
|
+
</MColumn>
|
|
196
|
+
</Show>
|
|
197
|
+
</Show>
|
|
198
|
+
</MColumn>
|
|
199
|
+
<MColumn gap="lg">
|
|
200
|
+
<Show
|
|
201
|
+
when={state.hasCurrent}
|
|
202
|
+
else={<MText tone="muted">Select a task to see its details.</MText>}
|
|
203
|
+
>
|
|
204
|
+
<TaskDetail
|
|
205
|
+
task={state.current}
|
|
206
|
+
priorities={state.priorities}
|
|
207
|
+
canMoveUp={state.position > 0}
|
|
208
|
+
canMoveDown={state.position >= 0 && state.position < state.visible.length - 1}
|
|
209
|
+
onToggle={() => state.toggle()}
|
|
210
|
+
onRename={(title) => state.rename(title)}
|
|
211
|
+
onNotes={(notes) => state.annotate(notes)}
|
|
212
|
+
onPriority={(priority) => state.prioritize(priority)}
|
|
213
|
+
onMove={(by) => state.move(by)}
|
|
214
|
+
/>
|
|
215
|
+
</Show>
|
|
216
|
+
<MCard gap="md">
|
|
217
|
+
<MText variant="overline" tone="muted">
|
|
218
|
+
NEW TASK
|
|
219
|
+
</MText>
|
|
220
|
+
<MInput
|
|
221
|
+
label="Title"
|
|
222
|
+
ref={titleRef}
|
|
223
|
+
value={state.title}
|
|
224
|
+
onChange={(value) => (state.title = value)}
|
|
225
|
+
placeholder="What needs doing?"
|
|
226
|
+
maxLength={60}
|
|
227
|
+
error={state.titleError}
|
|
228
|
+
onSubmit={() => state.add()}
|
|
229
|
+
/>
|
|
230
|
+
<MInput
|
|
231
|
+
label="Notes"
|
|
232
|
+
multiline
|
|
233
|
+
rows={2}
|
|
234
|
+
value={state.notes}
|
|
235
|
+
onChange={(value) => (state.notes = value)}
|
|
236
|
+
/>
|
|
237
|
+
<MSelect
|
|
238
|
+
label="Priority"
|
|
239
|
+
value={state.priority}
|
|
240
|
+
options={state.priorities}
|
|
241
|
+
onChange={(value) => (state.priority = value)}
|
|
242
|
+
/>
|
|
243
|
+
<MRow gap="sm">
|
|
244
|
+
<MButton text="Add task" onClick={() => state.add()} />
|
|
245
|
+
</MRow>
|
|
246
|
+
</MCard>
|
|
247
|
+
</MColumn>
|
|
248
|
+
</MGrid>
|
|
249
|
+
</MColumn>
|
|
250
|
+
)
|
|
251
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createApp } from 'nativescript-vue'
|
|
2
|
+
import { createMavis } from '@getcortexlabs/mavis/vue'
|
|
3
|
+
import { mavis, midnight } from '@getcortexlabs/mavis-core'
|
|
4
|
+
import App from './App.vue'
|
|
5
|
+
createApp(App)
|
|
6
|
+
.use(createMavis({ theme: mavis, darkTheme: midnight, appearance: '__MAVIS_APPEARANCE__' }))
|
|
7
|
+
.start()
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// swift-tools-version: 5.9
|
|
2
|
+
import PackageDescription
|
|
3
|
+
|
|
4
|
+
let package = Package(
|
|
5
|
+
name: "MavisDesktop",
|
|
6
|
+
platforms: [.macOS(.v14)],
|
|
7
|
+
products: [.executable(name: "MavisDesktop", targets: ["MavisDesktop"])],
|
|
8
|
+
dependencies: [
|
|
9
|
+
.package(url: "https://github.com/rafaelaugustos/jolt-swift.git", exact: "__MAVIS_JOLT_SWIFT__"),
|
|
10
|
+
],
|
|
11
|
+
targets: [
|
|
12
|
+
.executableTarget(
|
|
13
|
+
name: "MavisDesktop",
|
|
14
|
+
dependencies: [.product(name: "JoltSwiftUI", package: "jolt-swift")]
|
|
15
|
+
),
|
|
16
|
+
]
|
|
17
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import SwiftUI
|
|
2
|
+
|
|
3
|
+
@main
|
|
4
|
+
struct MavisDesktopApp: App {
|
|
5
|
+
var body: some Scene {
|
|
6
|
+
WindowGroup("__MAVIS_NAME__") {
|
|
7
|
+
ScrollView {
|
|
8
|
+
__MAVIS_ROOT__()
|
|
9
|
+
.padding(48)
|
|
10
|
+
.frame(maxWidth: __MAVIS_MAC_WIDTH__, alignment: .leading)
|
|
11
|
+
.frame(maxWidth: .infinity, alignment: .center)
|
|
12
|
+
}
|
|
13
|
+
.background(MavisTokens.background)
|
|
14
|
+
.tint(MavisTokens.primary)
|
|
15
|
+
.preferredColorScheme(.__MAVIS_APPEARANCE__)
|
|
16
|
+
.frame(minWidth: __MAVIS_MAC_MIN_WIDTH__, minHeight: 640)
|
|
17
|
+
}
|
|
18
|
+
.defaultSize(width: __MAVIS_MAC_DEFAULT_WIDTH__, height: 760)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"noEmit": true,
|
|
5
|
+
"jsx": "preserve",
|
|
6
|
+
"target": "ES2022",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "Bundler",
|
|
9
|
+
"lib": ["ES2023"],
|
|
10
|
+
"types": [],
|
|
11
|
+
"noUncheckedIndexedAccess": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["shared", "mavis-env.d.ts"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { mkdir, readFile, rm, writeFile } from 'node:fs/promises'
|
|
2
|
+
import { join } from 'node:path'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
4
|
+
import { compileProject, readShared, PortableError } from './portable/index.mjs'
|
|
5
|
+
|
|
6
|
+
const root = fileURLToPath(new URL('..', import.meta.url))
|
|
7
|
+
// Each target's generated folder. They are replaced on every run; never edit their files.
|
|
8
|
+
const folders = {
|
|
9
|
+
web: 'apps/web/src/generated',
|
|
10
|
+
native: 'apps/mobile/src/generated',
|
|
11
|
+
macos: 'apps/macos/Sources/MavisDesktop/Generated',
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
const config = JSON.parse(await readFile(join(root, 'mavis.config.json'), 'utf8'))
|
|
15
|
+
const files = await readShared(root)
|
|
16
|
+
const { model, vue, native, swift, environment } = await compileProject(files, {
|
|
17
|
+
theme: config.theme,
|
|
18
|
+
root: config.portability?.entry ?? 'Welcome',
|
|
19
|
+
})
|
|
20
|
+
const outputs = { web: vue, native, macos: swift }
|
|
21
|
+
// Write only after every target compiled.
|
|
22
|
+
for (const target of config.targets) {
|
|
23
|
+
const folder = join(root, folders[target])
|
|
24
|
+
await rm(folder, { recursive: true, force: true })
|
|
25
|
+
await mkdir(folder, { recursive: true })
|
|
26
|
+
for (const [name, text] of outputs[target]) await writeFile(join(folder, name), text)
|
|
27
|
+
}
|
|
28
|
+
await writeFile(join(root, 'mavis-env.d.ts'), environment)
|
|
29
|
+
console.log(
|
|
30
|
+
`Generated ${config.targets.join(', ')} for ${model.components.length} shared component(s).`,
|
|
31
|
+
)
|
|
32
|
+
} catch (error) {
|
|
33
|
+
if (!(error instanceof PortableError)) throw error
|
|
34
|
+
console.error(error.message)
|
|
35
|
+
process.exitCode = 1
|
|
36
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process'
|
|
2
|
+
import { cp, mkdir, copyFile, readdir, rm, writeFile } from 'node:fs/promises'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
4
|
+
import { join } from 'node:path'
|
|
5
|
+
|
|
6
|
+
if (process.platform !== 'darwin')
|
|
7
|
+
throw new Error(
|
|
8
|
+
'The macOS app needs macOS 14+ and Xcode. Web and code generation work on other hosts.',
|
|
9
|
+
)
|
|
10
|
+
const action = process.argv[2] ?? 'build'
|
|
11
|
+
if (!['build', 'run'].includes(action)) throw new Error('Expected build or run.')
|
|
12
|
+
const root = fileURLToPath(new URL('../', import.meta.url))
|
|
13
|
+
function run(command, args, capture = false) {
|
|
14
|
+
const result = spawnSync(command, args, {
|
|
15
|
+
cwd: root,
|
|
16
|
+
encoding: 'utf8',
|
|
17
|
+
stdio: capture ? 'pipe' : 'inherit',
|
|
18
|
+
})
|
|
19
|
+
if (result.error) throw result.error
|
|
20
|
+
if (result.status !== 0)
|
|
21
|
+
throw new Error(
|
|
22
|
+
`${command} failed (${result.status}). Check Xcode installation and command-line tools.`,
|
|
23
|
+
)
|
|
24
|
+
return result.stdout?.trim()
|
|
25
|
+
}
|
|
26
|
+
run(process.execPath, ['scripts/generate.mjs'])
|
|
27
|
+
run('swift', ['build', '--package-path', 'apps/macos', '-c', 'release'])
|
|
28
|
+
const bin = run(
|
|
29
|
+
'swift',
|
|
30
|
+
['build', '--package-path', 'apps/macos', '-c', 'release', '--show-bin-path'],
|
|
31
|
+
true,
|
|
32
|
+
)
|
|
33
|
+
const app = join(root, 'dist', '__MAVIS_NAME__.app')
|
|
34
|
+
await rm(app, { recursive: true, force: true })
|
|
35
|
+
await mkdir(join(app, 'Contents', 'MacOS'), { recursive: true })
|
|
36
|
+
await copyFile(join(bin, 'MavisDesktop'), join(app, 'Contents', 'MacOS', 'MavisDesktop'))
|
|
37
|
+
// Package resources, such as Jolt's motion definitions, travel inside the app.
|
|
38
|
+
for (const entry of await readdir(bin))
|
|
39
|
+
if (entry.endsWith('.bundle'))
|
|
40
|
+
await cp(join(bin, entry), join(app, 'Contents', 'Resources', entry), { recursive: true })
|
|
41
|
+
await writeFile(
|
|
42
|
+
join(app, 'Contents', 'Info.plist'),
|
|
43
|
+
`<?xml version="1.0" encoding="UTF-8"?>
|
|
44
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
45
|
+
<plist version="1.0"><dict>
|
|
46
|
+
<key>CFBundleExecutable</key><string>MavisDesktop</string>
|
|
47
|
+
<key>CFBundleIdentifier</key><string>com.mavis.experimental.__MAVIS_APPID__</string>
|
|
48
|
+
<key>CFBundleName</key><string>__MAVIS_NAME__</string>
|
|
49
|
+
<key>CFBundlePackageType</key><string>APPL</string>
|
|
50
|
+
<key>CFBundleShortVersionString</key><string>0.0.0</string>
|
|
51
|
+
<key>LSMinimumSystemVersion</key><string>14.0</string>
|
|
52
|
+
<key>NSHighResolutionCapable</key><true/>
|
|
53
|
+
</dict></plist>`,
|
|
54
|
+
)
|
|
55
|
+
console.log(`Built ${app}. Local unsigned development app; distribution/signing is not configured.`)
|
|
56
|
+
if (action === 'run') run('open', ['-n', app])
|