GithubHelp home page GithubHelp logo

fhoech / 0bootstrap-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0install/get

0.0 2.0 0.0 244 KB

lightweight PHP script that creates bootstrapping EXEs or bash scripts for installing Zero Install plus a feed

0bootstrap-php's Introduction

0bootstrap-php

lightweight PHP script that creates bootstrapping EXEs or bash scripts for installing Zero Install plus a feed

PHP

The bootstrap.php script takes name and uri HTTP GET parameters. It loads a template file based on the user agent's operating system, substitutes placeholders with the parameters and returns the file as the response.

Windows

Use Inno Setup to compile template-windows.iss to template-windows.exe. AppParams.ini is embedded within the EXE in uncompressed form, allowing the PHP script to perform the placeholder replacement.

Linux

template-linux.sh is a shell script that first tries to detect the distribution's package manager, then uses it to install Zero Install and finally invokes 0desktop for the target feed. The script contains placeholders that are replaced by the PHP script.

0bootstrap-php's People

Contributors

bastianeicher avatar

Watchers

James Cloos avatar Florian Höch avatar

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.