try icon
This commit is contained in:
1 parent
6cdc309b9c
commit
48944131a2
5 files changed
+24
-1
No files matched your search
@@ -5,4 +5,5 @@ STEP=$((STEP+1))
|
||||
echo -e "\n> > > > Step №$STEP. Build '$TARGET' for Windows"
|
||||
|
||||
cd "$SDIR/../ver-windows"
|
||||
export APP_RES_DIR="$SDIR/../ver-windows/res"
|
||||
swift build
|
||||
@@ -1,6 +1,9 @@
|
||||
// swift-tools-version: 5.10
|
||||
import Foundation
|
||||
import PackageDescription
|
||||
|
||||
let resDir = ProcessInfo.processInfo.environment["APP_RES_DIR"]!
|
||||
|
||||
let package = Package(
|
||||
name: "hello-platform",
|
||||
dependencies: [
|
||||
@@ -13,7 +16,10 @@ let package = Package(
|
||||
.product(name: "SwiftCrossUI", package: "swift-cross-ui"),
|
||||
.product(name: "WinUIBackend", package: "swift-cross-ui")
|
||||
],
|
||||
path: "src"
|
||||
path: "src",
|
||||
linkerSettings: [
|
||||
.unsafeFlags(["-Xlinker", "\(resDir)/AppIcon.res"])
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
../../../../res/AppIcon.res
|
||||
Reference in new issue
Block a user