mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-11 09:15:56 +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
1005 B
Bash
Executable File
31 lines
1005 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# WARNING: Impure setup, should be minimized.
|
|
# TODO: Replace this with yarn2nix.
|
|
|
|
set -e
|
|
|
|
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
|
|
source "${GIT_ROOT}/scripts/colors.sh"
|
|
|
|
PLATFORM_FOLDER="desktop/js_files"
|
|
|
|
if [ ! -f package.json ] || [ $(readlink package.json) != "${PLATFORM_FOLDER}/package.json" ]; then
|
|
rm -rf node_modules
|
|
|
|
echo "Creating link: package.json -> ${PLATFORM_FOLDER}/package.json"
|
|
ln -sf ${PLATFORM_FOLDER}/package.json package.json
|
|
|
|
echo "Creating link: yarn.lock -> ${PLATFORM_FOLDER}/yarn.lock"
|
|
ln -sf ${PLATFORM_FOLDER}/yarn.lock yarn.lock
|
|
|
|
echo "Creating link: metro.config.js -> ${PLATFORM_FOLDER}/metro.config.js"
|
|
ln -sf ${PLATFORM_FOLDER}/metro.config.js metro.config.js
|
|
fi
|
|
|
|
mkdir -p "$GIT_ROOT/node_modules/"
|
|
# Leverage flock (file lock) utility to create an exclusive lock on node_modules/ while running 'yarn install'
|
|
flock "$GIT_ROOT/node_modules/" yarn install --frozen-lockfile
|
|
|
|
echo -e "${GRN}Finished!${RST}"
|