Skip to content

Commit e9b74b9

Browse files
committed
fixes macos file name
1 parent 25eb58b commit e9b74b9

10 files changed

Lines changed: 36 additions & 14 deletions

File tree

src/darwin/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const runMacDeployQt = async ({
6060

6161
const options = [
6262
`${appName}.app`,
63-
"-dmg",
6463
"-verbose=3",
6564
`-libpath=${qode.qtHome}`,
6665
...addonCommands(allAddons)
@@ -113,7 +112,7 @@ export const pack = async (distPath: string, identity?: string) => {
113112
const buildDir = path.resolve(usertemplate, "build");
114113
const buildAppPackage = path.resolve(buildDir, `${appName}.app`);
115114
const Contents = path.resolve(buildAppPackage, "Contents");
116-
const MacOs = path.resolve(Contents, "MacOs");
115+
const MacOs = path.resolve(Contents, "MacOS");
117116
const resourceDir = path.resolve(Contents, "Resources");
118117
console.log(`cleaning build directory at ${buildDir}`);
119118
await fs.remove(buildDir);
@@ -126,6 +125,6 @@ export const pack = async (distPath: string, identity?: string) => {
126125
console.log(`running macdeployqt`);
127126

128127
await runMacDeployQt({ appName, buildDir, resourceDir, identity });
129-
130-
console.log(`Build successful. Find the dmg/app at ${buildDir}`);
128+
console.log(`Build successful. Find the app at ${buildDir}`);
131129
};
130+

template/darwin/Contents/Frameworks/.gitkeep

Whitespace-only changes.

template/darwin/Contents/Info.plist

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,35 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
57
<key>CFBundleExecutable</key>
68
<string>qode</string>
7-
<key>CFBundleIconFile</key>
8-
<string></string>
99
<key>CFBundleIdentifier</key>
10-
<string>io.github.nodegui.myapp</string>
10+
<string>org.nodegui.app</string>
11+
<key>CFBundleSignature</key>
12+
<string>????</string>
1113
<key>CFBundleInfoDictionaryVersion</key>
1214
<string>6.0</string>
1315
<key>CFBundleName</key>
14-
<string>NodeGui</string>
16+
<string>NodeGuiApp</string>
1517
<key>CFBundlePackageType</key>
1618
<string>APPL</string>
1719
<key>CFBundleShortVersionString</key>
1820
<string>1.0</string>
21+
<key>CFBundleSupportedPlatforms</key>
22+
<array>
23+
<string>MacOSX</string>
24+
</array>
1925
<key>CFBundleVersion</key>
2026
<string>1</string>
21-
<key>LSApplicationCategoryType</key>
22-
<string></string>
27+
<key>DTCompiler</key>
28+
<string>com.apple.compilers.llvm.clang.1_0</string>
29+
<key>LSMinimumSystemVersion</key>
30+
<string>10.15</string>
2331
<key>NSHumanReadableCopyright</key>
24-
<string>Copyright © 2019 NodeGui Org. All rights reserved.</string>
25-
<key>NSPrincipalClass</key>
26-
<string>NSApplication</string>
32+
<string>Copyright © 2020 Atul R. All rights reserved.</string>
2733
<key>NSHighResolutionCapable</key>
2834
<string>True</string>
2935
</dict>
30-
</plist>
36+
</plist>

template/darwin/Contents/MacOs/.gitkeep

Whitespace-only changes.

template/darwin/Contents/PkgInfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
APPL????

template/darwin/Contents/PlugIns/.gitkeep

Whitespace-only changes.

template/darwin/Contents/Resources/.gitkeep

Whitespace-only changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-jit</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
10+
<true/>
11+
<key>com.apple.security.cs.disable-executable-page-protection</key>
12+
<true/>
13+
<key>com.apple.security.cs.disable-library-validation</key>
14+
<true/>
15+
</dict>
16+
</plist>

template/darwin/Contents/SharedFrameWorks/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)