mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 10:42:53 +00:00
Jakub Sokołowski
42fb40476c
Changes: - Fixed `nix/status-go/desktop` builds - Dropped nimbus wrapper for `status-go` for now - Split `status-go` builds into subfolders: `mobile`, `desktop` - Fixed shells for desktop builds: `linux`,`macos`,`windows` - Added `make status-go-*` targets for building them - Moved source management to `nix/status-go/source.nix` - Moved `nix/status-go/build.nix` into `nix/status-go/mobile` - Moved `nix/desktop/cmake/qtkeychain` to `nix/pkgs/qtkeychain-src` - Moved `nix/desktop/linux/linuxdeployqt` to `nix/pkgs` - Moved `nix/desktop/linux/appimagekit` to `nix/pkgs` - Dropped `nix/tools/mkShell.nix` since it did almost nothing - Dropped `nix/desktop/cmake/snorenotify` since it's broken - Moved setup from `nix/tools/mkShell.nix` to `nix/shells.nix` - Simplified `nix/mobile/ios/status-go-shell.nix` - Simplified `nix/status-go/default.nix` - Updated the `nix/DETAILS.md` and `nix/README.md` - Moved known issues to `nix/KNOWN_ISSUES.md` - Improved output of `nix/scripts/build.sh` Signed-off-by: Jakub Sokołowski <jakub@status.im>
31 lines
1.2 KiB
Nix
31 lines
1.2 KiB
Nix
#
|
|
# This prepares status-go build file called Statusgo.framework for XCode.
|
|
# It copies the status-go build result to 'modules/react-native-status/ios/RCTStatus'.
|
|
#
|
|
|
|
{ lib, mkShell, status-go }:
|
|
|
|
mkShell {
|
|
shellHook = ''
|
|
export STATUS_GO_IOS_LIBDIR=${status-go}/Statusgo.framework
|
|
|
|
RCTSTATUS_DIR="$STATUS_REACT_HOME/modules/react-native-status/ios/RCTStatus"
|
|
targetBasename='Statusgo.framework'
|
|
|
|
# Compare target folder with source to see if copying is required
|
|
if [ -d "$RCTSTATUS_DIR/$targetBasename" ] && [ -d $STATUS_REACT_HOME/ios/Pods/ ] && \
|
|
diff -qr --no-dereference $RCTSTATUS_DIR/$targetBasename/ $STATUS_GO_IOS_LIBDIR/ > /dev/null; then
|
|
echo "$RCTSTATUS_DIR/$targetBasename already in place"
|
|
else
|
|
sourceBasename="$(basename $STATUS_GO_IOS_LIBDIR)"
|
|
echo "Copying $sourceBasename from Nix store to $RCTSTATUS_DIR"
|
|
rm -rf "$RCTSTATUS_DIR/$targetBasename/"
|
|
cp -a $STATUS_GO_IOS_LIBDIR $RCTSTATUS_DIR
|
|
chmod -R 755 "$RCTSTATUS_DIR/$targetBasename"
|
|
if [ "$sourceBasename" != "$targetBasename" ]; then
|
|
mv "$RCTSTATUS_DIR/$sourceBasename" "$RCTSTATUS_DIR/$targetBasename"
|
|
fi
|
|
fi
|
|
'';
|
|
}
|