@@ -399,12 +399,12 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
399399 try runProgram ( strip, " .build/ \( arch) -apple-macosx/release/swiftly " )
400400 }
401401
402- let swiftlyBinDir = FileManager . default. currentDirectoryPath + " /.build/release/usr/local /bin "
402+ let swiftlyBinDir = FileManager . default. currentDirectoryPath + " /.build/release/.swiftly /bin "
403403 try ? FileManager . default. createDirectory ( atPath: swiftlyBinDir, withIntermediateDirectories: true )
404404
405405 try runProgram ( lipo, " .build/x86_64-apple-macosx/release/swiftly " , " .build/arm64-apple-macosx/release/swiftly " , " -create " , " -o " , " \( swiftlyBinDir) /swiftly " )
406406
407- let swiftlyLicenseDir = FileManager . default. currentDirectoryPath + " /.build/release/usr/local/share/doc/ swiftly/license "
407+ let swiftlyLicenseDir = FileManager . default. currentDirectoryPath + " /.build/release/. swiftly/license "
408408 try ? FileManager . default. createDirectory ( atPath: swiftlyLicenseDir, withIntermediateDirectories: true )
409409 try await self . collectLicenses ( swiftlyLicenseDir)
410410
@@ -418,7 +418,7 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
418418 " --root " ,
419419 swiftlyBinDir + " /.. " ,
420420 " --install-location " ,
421- " usr/local " ,
421+ " .swiftly " ,
422422 " --version " ,
423423 self . version,
424424 " --identifier " ,
@@ -433,7 +433,7 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
433433 " --root " ,
434434 swiftlyBinDir + " /.. " ,
435435 " --install-location " ,
436- " usr/local " ,
436+ " .swiftly " ,
437437 " --version " ,
438438 self . version,
439439 " --identifier " ,
@@ -455,9 +455,9 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
455455 try distFileContents. write ( to: distFile, atomically: true , encoding: . utf8)
456456
457457 if let cert = cert {
458- try runProgram ( " productbuild " , " --distribution " , distFile. path, " --package-path " , pkgFile. path, " --sign " , cert, pkgFileReconfigured. path)
458+ try runProgram ( " productbuild " , " --distribution " , distFile. path, " --package-path " , pkgFile. deletingLastPathComponent ( ) . path, " --sign " , cert, pkgFileReconfigured. path)
459459 } else {
460- try runProgram ( " productbuild " , " --distribution " , distFile. path, " --package-path " , pkgFile. path, pkgFileReconfigured. path)
460+ try runProgram ( " productbuild " , " --distribution " , distFile. path, " --package-path " , pkgFile. deletingLastPathComponent ( ) . path, pkgFileReconfigured. path)
461461 }
462462 try FileManager . default. removeItem ( at: pkgFile)
463463 try FileManager . default. copyItem ( atPath: pkgFileReconfigured. path, toPath: pkgFile. path)
0 commit comments