File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ let package = Package(
99 . library( name: " SkiaUI " , targets: [ " SkiaUI " ] ) ,
1010 . library( name: " SkiaUIWebBridge " , targets: [ " SkiaUIWebBridge " ] ) ,
1111 . library( name: " SkiaUIBuildTool " , targets: [ " SkiaUIBuildTool " ] ) ,
12+ . executable( name: " SkiaUIDocsSite " , targets: [ " SkiaUIDocsSite " ] ) ,
13+ . executable( name: " skia " , targets: [ " skia " ] ) ,
1214 . plugin( name: " SkiaPlugin " , targets: [ " SkiaPlugin " ] ) ,
1315 ] ,
1416 dependencies: [
Original file line number Diff line number Diff line change @@ -92,9 +92,11 @@ public struct BuildCommand: ParsableCommand {
9292
9393 // Copy PackageToJS output
9494 let packageJSOutput = scratchPath + " /plugins/PackageToJS/outputs/Package "
95- if fm. fileExists ( atPath: packageJSOutput) {
96- try fm. copyItem ( atPath: packageJSOutput, toPath: distDir + " /package " )
95+ guard fm. fileExists ( atPath: packageJSOutput) else {
96+ print ( " Error: Build failed — could not find WASM output at \( packageJSOutput) " )
97+ throw ExitError ( code: 1 )
9798 }
99+ try fm. copyItem ( atPath: packageJSOutput, toPath: distDir + " /package " )
98100
99101 // Copy WebHost files
100102 let webHostDir = cwd + " /WebHost "
You can’t perform that action at this time.
0 commit comments