Giter Site home page Giter Site logo

Comments (1)

BDHernand avatar BDHernand commented on August 16, 2024

Was looking at this. To do this in package builder we would need to alter the build-package.sh file
and before we invoke the makefile we would need to do the following:

swift package fetch

This will get all the dependencies and put them in the Packages directory. Next based upon OS we would need to issue the following commands:

Linux:

egrep -R "Apt *\(" Packages/*/Package.swift | sed -e 's/^.*\.Apt *( *" *//' -e 's/".*$//' | sort | uniq

Mac:

egrep -R "Brew *\(" Packages/*/Package.swift | sed -e 's/^.*\.Brew *( *" *//' -e 's/".*$//' | sort | uniq

the sort and uniq portions of the commands were to make sure we don't have duplicates in the list and to order it.

We would probable also want to run those commands on the main Package.swift file of the repo to make sure that it is taken care of as well and add that to the existing list if any.

That new list would need to be sorted and uniqued and passed into either apt-get or brew install commands to get those dependencies installed. Then once that is done we can run the make file portion of package-builder.... that should about cover it.

from swift-buildpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.