Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate ubuntu-server binaries during build #8246

Open
vkjr opened this issue May 21, 2019 · 0 comments

Comments

@vkjr
Copy link
Member

commented May 21, 2019

Problem

Ubuntu-server binaries better to be generated during build because their replacing requires a lot of manual work: generating new binaries, uploading them to servers, changing hashes in nix files.

Implementation

Here are steps that needed to generate binaries:

  1. pkg package should be installed - https://github.com/zeit/pkg
    npm install -g pkg

  2. yarn install should happen before next steps

  3. Patch should be applied to realm file:
    patch node_modules/realm/lib/index.js < patches/change_realm_for_pkg.patch
    patch file can be found here - https://github.com/status-im/status-react/pull/8244

  4. Binaries should be generated with pkg:
    pkg ubuntu-server.js --targets macos --out-path ./ubuntu-server-binary/macos
    pkg ubuntu-server.js --targets linux --out-path ./ubuntu-server-binary/linux
    pkg ubuntu-server.js --targets win --out-path ./ubuntu-server-binary/win

  5. Realm patch should be reverted:
    patch -R node_modules/realm/lib/index.js < patches/change_realm_for_pkg.patch

Acceptance Criteria

Notes

Future Steps

ubuntu-server binaries should be removed from servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.