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

@@ -1,9 +1,9 @@
const fs = require('fs').promises;
const path = require('path');
const frameworkPath = 'rust/bindings/ios/PubkyMobile.xcframework';
const frameworkPath = 'rust/bindings/ios/PubkyCore.xcframework';
const frameworkDestinationPath = 'ios/Frameworks';
const swiftFilePath = 'rust/bindings/ios/pubkymobile.swift';
const swiftFilePath = 'rust/bindings/ios/pubkycore.swift';
const swiftDestinationPath = 'ios/';
async function runSetup() {
@@ -12,7 +12,7 @@ async function runSetup() {
// Remove destination directories if they exist
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 }),
]);
console.log('Creating directories...');