Skip to content

Commit 6b7c7d7

Browse files
committed
macos dist now generates a dmg also
1 parent a02beaa commit 6b7c7d7

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

ofGen/src/templates.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,10 @@ void ofTemplateChalet::save() {
11951195
projectYaml["distribution"]["empty"]["buildTargets"] = conf.projectName;
11961196
renameYamlKey(projectYaml["distribution"], "empty", conf.projectName);
11971197

1198+
renameYamlKey(projectYaml["distribution"]["empty.dmg"]["positions"], "empty", conf.projectName);
1199+
renameYamlKey(projectYaml["distribution"], "empty.dmg", conf.projectName + ".dmg");
1200+
1201+
11981202
// Change key "empty" to project name in targets
11991203
// {
12001204
// auto targets = projectYaml["targets"];

ofGen/src/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include <iostream> // cout
4-
static std::string version = "v0.8.0";
4+
static std::string version = "v0.8.1";
55

66
#include <filesystem>
77
#include <map>

scripts/templates/chalet/chalet.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,22 @@ distribution:
388388
CFBundleSignature: "????"
389389
LSMinimumSystemVersion: "10.8"
390390
NSHighResolutionCapable: true
391+
392+
empty.dmg:
393+
kind: macosDiskImage
394+
pathbarVisible: false
395+
textSize: 12
396+
iconSize: 80
397+
# background:
398+
# 1x: platform/macos/dmg-background.png
399+
# 2x: platform/macos/[email protected]
400+
size:
401+
width: 512
402+
height: 342
403+
positions:
404+
empty:
405+
x: 120
406+
y: 188
407+
Applications:
408+
x: 392
409+
y: 188

0 commit comments

Comments
 (0)