Skip to content

Commit

Permalink
move to swiftbundler's custom builders feature.
Browse files Browse the repository at this point in the history
* this allows us to integrate existing upstream C++ projects with CMake,
  and use custom builders to build and bundle those libraries & executables
  alongside our swiftpm project.

Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Dec 27, 2024
1 parent 3fd6181 commit c9dd432
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
23 changes: 18 additions & 5 deletions Bundler.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
format_version = 2

[projects.Kraken]
source = 'git(https://github.com/wabiverse/Kraken.git)'
revision = 'main'

[projects.Kraken.products.Kraken]
type = 'executable'

[projects.Kraken.builder]
name = 'Package.swift'
type = 'wholeProject'
api = 'revision(main)'

[apps.Kraken]
identifier = 'foundation.wabi.Kraken'
product = 'Kraken'
version = '1.1.0'
category = 'public.app-category.graphics-design'
icon = "kraken.png"
icon = 'kraken.png'

[apps.Kraken.plist]
commit = '$(COMMIT_HASH)'
CFBundleURLTypes = [ { type = "dict", value = { CFBundleTypeRole = 'Viewer', CFBundleURLName = 'Kraken', CFBundleURLSchemes = [ 'kraken' ] } } ]
CFBundleShortVersionString = '$(VERSION)'
CFBundleURLTypes = [ { type = 'dict', value = { CFBundleTypeRole = 'Viewer', CFBundleURLName = 'Kraken', CFBundleURLSchemes = [ 'kraken' ] } } ]
CFBundleDocumentTypes = [
{ type = "dict", value = { CFBundleTypeExtensions = [ 'usd', 'usda', 'usdc', 'usdz' ], CFBundleTypeIconFile = 'AppIcon.icns', CFBundleTypeName = 'Universal Scene Description File', CFBundleTypeRole = 'Editor', LSIsAppleDefaultForType = true, LSItemContentTypes = [ 'com.pixar.universal-scene-description', 'com.pixar.universal-scene-description-mobile', 'com.pixar.usd.ascii', 'com.pixar.usd.crate' ], CFBundleTypeIconSystemGenerated = true } },
{ type = "dict", value = { CFBundleTypeExtensions = [ 'galah' ], CFBundleTypeIconFile = 'AppIcon.icns', CFBundleTypeName = 'Galah File', CFBundleTypeRole = 'Editor', LSIsAppleDefaultForType = true, LSItemContentTypes = [ 'dev.stackotter.galah' ], CFBundleTypeIconSystemGenerated = true } }
{ type = 'dict', value = { CFBundleTypeExtensions = [ 'usd', 'usda', 'usdc', 'usdz' ], CFBundleTypeIconFile = 'AppIcon.icns', CFBundleTypeName = 'Universal Scene Description File', CFBundleTypeRole = 'Editor', LSIsAppleDefaultForType = true, LSItemContentTypes = [ 'com.pixar.universal-scene-description', 'com.pixar.universal-scene-description-mobile', 'com.pixar.usd.ascii', 'com.pixar.usd.crate' ], CFBundleTypeIconSystemGenerated = true } },
{ type = 'dict', value = { CFBundleTypeExtensions = [ 'galah' ], CFBundleTypeIconFile = 'AppIcon.icns', CFBundleTypeName = 'Galah File', CFBundleTypeRole = 'Editor', LSIsAppleDefaultForType = true, LSItemContentTypes = [ 'dev.stackotter.galah' ], CFBundleTypeIconSystemGenerated = true } }
]
UTExportedTypeDeclarations = [ { type = "dict", value = { UTTypeConformsTo = [ 'public.data', 'public.source-code' ], UTTypeIdentifier = 'dev.stackotter.galah', UTTypeDescription = 'Galah File', UTTypeIcons = { type = "dict", value = { UTTypeIconName = "Galah File", UTTypeIconText = "galah" } }, UTTypeTagSpecification = { type = "dict", value = { 'public.filename-extension' = [ 'galah' ] } } } } ]
UTExportedTypeDeclarations = [ { type = 'dict', value = { UTTypeConformsTo = [ 'public.data', 'public.source-code' ], UTTypeIdentifier = 'dev.stackotter.galah', UTTypeDescription = 'Galah File', UTTypeIcons = { type = 'dict', value = { UTTypeIconName = 'Galah File', UTTypeIconText = 'galah' } }, UTTypeTagSpecification = { type = 'dict', value = { 'public.filename-extension' = [ 'galah' ] } } } } ]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
<div align="left">

```pwsh
git clone https://github.com/stackotter/swift-bundler
cd swift-bundler
git clone https://github.com/wabiverse/wabi-swift-bundler
cd wabi-swift-bundler
swift build -c release
sudo cp .build/release/swift-bundler /usr/local/bin/
Expand Down

0 comments on commit c9dd432

Please sign in to comment.