Embed AppIcon.png within binary (#30)

* Build product explicitly

Without it resources are not embedded in the executable

* Embed icon in code
This commit is contained in:
Fedor Korotkov
2022-04-22 10:29:52 +03:00
committed by GitHub
parent f07ffed6c8
commit 4a5efefbc9
8 changed files with 11 additions and 10 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ struct Run: AsyncParsableCommand {
nsApp.setActivationPolicy(.regular)
nsApp.activate(ignoringOtherApps: true)
let icon = Bundle.module.image(forResource: "AppIcon.png")
nsApp.applicationIconImage = icon
nsApp.applicationIconImage = NSImage(data: AppIconData)
struct MainApp: App {
var body: some Scene {
File diff suppressed because one or more lines are too long
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8dd6af1a08bbcdc4faf0ff53601b38136c90231e11bd81bc8cd477d6f1c7d3f2
size 209404
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.virtualization</key>
<true/>
</dict>
</plist>