refactor: updates build scripts

Updates build scripts to account for the updated naming convention.
Updates bindings accordingly.
This commit is contained in:
coreyphillips
2024-10-29 19:47:33 -04:00
parent 693106a2e1
commit 58870cab6a
26 changed files with 929 additions and 857 deletions

View File

@@ -4,11 +4,11 @@ const simpleGit = require('simple-git');
// Configuration
const repoOwner = 'pubky';
const repoName = 'pubky-core-mobile-sdk';
const repoName = 'pubky-core-ffi';
const branch = 'main';
const frameworkPath = 'bindings/ios/PubkyMobile.xcframework';
const frameworkPath = 'bindings/ios/PubkyCore.xcframework';
const frameworkDestinationPath = 'ios/Frameworks';
const swiftFilePath = 'bindings/ios/pubkymobile.swift';
const swiftFilePath = 'bindings/ios/pubkycore.swift';
const swiftDestinationPath = 'ios/';
const tempDir = 'temp';
@@ -18,7 +18,7 @@ async function runSetup() {
// Remove destination directories if they exist & Clean up any lingering temporary directory
await Promise.all([
fs.rm(frameworkDestinationPath, { recursive: true, force: true }),
fs.rm('ios/pubkymobile.swift', { recursive: true, force: true }),
fs.rm('ios/pubkycore.swift', { recursive: true, force: true }),
fs.rm(tempDir, { recursive: true, force: true }),
]);