Skip to content

Improve build documentation #4

Closed

Description

@SebRut

Hi,

I'm trying to prepare an arch linux package for this but the build documentation is kinda lacking. Right now I got it boiled down to this:

  1. checkout code
  2. run make prepare (this fails on linux because of different sed implementations and I guess you need node and something called rollup.js too?)
  3. run swift build --configuration release -Xswiftc -static-stdlib
  4. take binary from .build/x86_64-unknown-linux-gnu/release/cook

Activity

  1. jsbmg commented on Oct 29, 2021

    @jsbmg

    Regarding sed and Linux, what platform would this work to build on?

  2. spencerpogo commented on Oct 30, 2021

    @spencerpogo

    Considering swift is an apple centric language I would make an educated guess that it works on mac.

  3. SebRut commented on Oct 30, 2021

    @SebRut
    Author

    IIRC the problem is that macOS ships with BSD sed while most linuxes ship with GNU sed which are not completely compatible. It seems like using GNU sed on macOS would be as simple as installing gsed with homebrew und using that instead of sed.

  4. dubadub commented on Oct 31, 2021

    @dubadub
    Member

    @SebRut thanks for bringing this up. I'll add the document shortly. Your flow is completely right, except that you don't need to do step 2: it's only required during development to update inlined assets in code.

    Update: as step 2 is not required, sed shouldn't be an issue (if not developing).

  5. added
    documentation
    on Oct 31, 2021
  6. dubadub commented on Nov 2, 2021

    @dubadub
    Member

    I added build instructions https://github.com/cooklang/CookCLI#building-from-source for users. Will close this issue after adding build instructions for developers.

  7. dubadub commented on Mar 26, 2022

    @dubadub
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions