Giter Club home page Giter Club logo

chocolatestore's Introduction

ChocolateStore

ChocolateStore is a free and open source software that allows caching of Chocolatey packages for easy offline installation
Also cache chocolatey packages to efficiently provision multiple machines or VMs on a LAN

LICENSE


Apache 2.0

COMPILATION REQUIREMENTS


Using Visual Studio

Using command line
Install these tools

Instructions


Clone repository to your machine:
git clone https://github.com/sr258/ChocolateStore.git

Restore NuGet packages with NuGet Commandline:
cd .\ChocolateStore\src\ChocolateStore
nuget restore .\ChocolateStore.csproj -OutputDirectory ..\..\packages

Compile application:

  • Default build
    dotnet build
  • Debug build
    dotnet build -c Debug
  • Release build
    dotnet build -c Release

After completing the compilation, it is possible to merge compiled files as a single standalone executable using ILMerge (or ILMerge GUI)

SYNTAX


ChocolateStore <directory> <package/version> variable1=value1,value2 variable2=value3

EXAMPLES


In this example, we will store the latest version of GoogleChrome on a network share and install it from a client on the LAN. We will also store a specific version of Python, and the latest version of Firefox as an example for using variables.

  1. In a command prompt, browse to the ChocolateStore executable folder.

  2. Execute the following command. Note that the first argument is a network share for which the current user has "write" permissions. This will download the GoogleChrome package, download the installer and modify the package to point to the local installer.

    ChocolateStore M:\Store GoogleChrome

    If you need a specific version, add it after the package name and a /.

    ChocolateStore M:\Store python/3.8.2

    For packages containing variables, add a third argument to the syntax, which is the name of the variable followed by the value to be assigned. This is mandatory in packages that use variables in the download url.
    This argument support multiple variables and values.

    ChocolateStore M:\Store Firefox locale=en-US

  3. From a computer that would like to have GoogleChrome installed and from which the current user has "read" permissions to the network share execute the following command:

    cinst GoogleChrome -source M:\Store

    • Note that installing the package with variables is no different from packages that do not contain variables.

chocolatestore's People

Contributors

andreaugustodev avatar bahkoo avatar jdasilva avatar laggingreflex avatar lebarsfa avatar sr258 avatar

Stargazers

 avatar

Watchers

 avatar  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.