diff --git a/Makefile b/Makefile index 6fdd3e36..83e1019d 100644 --- a/Makefile +++ b/Makefile @@ -43,21 +43,14 @@ release: publish: archive echo "published $(VERSION)" -# ArtifactBundleGen looks for the universal binary in /apple/Products/Release, -# but newer Swift versions put it elsewhere (Swift 6.4 uses .build/out/Products/Release). -# Point the plugin at a folder that links to whatever path `swift build` reports. -ARTIFACT_BUNDLE_BUILD_FOLDER = .build/artifactbundle - archive: build ./scripts/archive.sh "$(EXECUTABLE_PATH)" - rm -rf $(ARTIFACT_BUNDLE_BUILD_FOLDER) $(EXECUTABLE_NAME).artifactbundle.zip - mkdir -p $(ARTIFACT_BUNDLE_BUILD_FOLDER)/apple/Products - ln -s "$(BUILD_PATH)" $(ARTIFACT_BUNDLE_BUILD_FOLDER)/apple/Products/Release + rm -f $(EXECUTABLE_NAME).artifactbundle.zip swift package plugin --allow-writing-to-package-directory generate-artifact-bundle \ --package-version $(VERSION) \ --executable-name $(EXECUTABLE_NAME) \ --build-config release \ - --build-folder $(ARTIFACT_BUNDLE_BUILD_FOLDER) \ + --universal-binary-folder "$(BUILD_PATH)" \ --include-resource-path LICENSE @unzip -l $(EXECUTABLE_NAME).artifactbundle.zip | grep -q "bin/$(EXECUTABLE_NAME)$$" \ || (echo "error: $(EXECUTABLE_NAME).artifactbundle.zip does not contain the $(EXECUTABLE_NAME) binary" && exit 1) diff --git a/Package.resolved b/Package.resolved index 262af587..305ece4b 100644 --- a/Package.resolved +++ b/Package.resolved @@ -14,8 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/freddi-kit/ArtifactBundleGen", "state" : { - "revision" : "33f4a65acb296dcde04aeb828b6850fcf9dceb6c", - "version" : "0.0.8" + "revision" : "03c813a6a0708451c40603c407201c9d64bcd3cd", + "version" : "0.0.9" } }, { diff --git a/Package.swift b/Package.swift index ddc6b92e..0375315e 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,7 @@ let package = Package( .package(url: "https://github.com/tuist/XcodeProj.git", exact: "9.17.8"), .package(url: "https://github.com/jakeheis/SwiftCLI.git", from: "6.0.3"), .package(url: "https://github.com/mxcl/Version", from: "2.0.0"), - .package(url: "https://github.com/freddi-kit/ArtifactBundleGen", exact: "0.0.8") + .package(url: "https://github.com/freddi-kit/ArtifactBundleGen", exact: "0.0.9") ], targets: [ .executableTarget(name: "XcodeGen", dependencies: [