Skip to content

Commit

Permalink
Move dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
DDRBoxman committed Oct 10, 2023
1 parent c37373b commit 3bf340c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/macos-xcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
default: true
override: true

- name: Install dylibbundler
run: |
brew install dylibbundler
- name: Build for mac
run: ./build_macos_lib.sh

Expand All @@ -54,9 +58,11 @@ jobs:
run: |
xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO archive -archivePath archive.xcarchive -scheme Cappy3ds
xcodebuild -archivePath ./archive.xcarchive -exportArchive -exportPath ./ -exportOptionsPlist ./exportOptionsAdHoc.plist
dylibBundler -b -cd -d ./Cappy3ds.app/Contents/Frameworks -p @executable_path/../Frameworks/ -x ./Cappy3ds.app/Contents/Frameworks/libcappy3ds.dylib
install_name_tool -change /Users/runner/work/Cappy3ds/Cappy3ds/target/debug/deps/libcappy3ds.dylib @executable_path/../Frameworks/libcappy3ds.dylib ./Cappy3ds.app/Contents/MacOS/Cappy3ds
zip -r -X ../result.zip Cappy3ds.app
- uses: actions/upload-artifact@v3
with:
name: macOS
path: result.zip
path: result.zip
4 changes: 3 additions & 1 deletion macos/Cappy3ds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
670A0A9A2AC14FEE00E03E0D /* Cappy3dsUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 670A0A992AC14FEE00E03E0D /* Cappy3dsUITests.swift */; };
670A0A9C2AC14FEE00E03E0D /* Cappy3dsUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 670A0A9B2AC14FEE00E03E0D /* Cappy3dsUITestsLaunchTests.swift */; };
67A0F4582AC22EFB00B072B4 /* libcappy3ds.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 67A0F4572AC22EFB00B072B4 /* libcappy3ds.dylib */; };
67C897D02AD4DF6100F97849 /* libcappy3ds.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 67A0F4572AC22EFB00B072B4 /* libcappy3ds.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -39,8 +40,9 @@
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 6;
dstSubfolderSpec = 10;
files = (
67C897D02AD4DF6100F97849 /* libcappy3ds.dylib in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

0 comments on commit 3bf340c

Please sign in to comment.