mirror of
https://github.com/aljazceru/react-native-pubky.git
synced 2025-12-17 22:54:29 +01:00
refactor: updates build scripts
Updates build scripts to account for the updated naming convention. Updates bindings accordingly.
This commit is contained in:
@@ -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...');
|
||||
|
||||
Reference in New Issue
Block a user