Creates a new OPSI package template for various package installations types
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonas Lührig 09193e0541 cURL now follows redirections on program downloads 3 years ago
README.md Added weblinks pkg type, updated README, small bugfixes 3 years ago
fetch-favicon.sh Added weblinks pkg type, updated README, small bugfixes 3 years ago
logo-overlay-small.png Updated description, included icon files 3 years ago
logo-placeholder.png Updated description, included icon files 3 years ago
new-package.sh cURL now follows redirections on program downloads 3 years ago

README.md

This script creates a new OPSI package structure for various types of installer methods (Batch, Inno, NSIS...) to make software packaging a little easier.

The script needs the "convert" command from the ImageMagick software suite and cURL for downloading the setup file and package logo.

Usage:
  ./new-package.sh <product-id>

Optional parameters:
  -d <Product Description>      Adds a description to the package
  -n <Product Name>             Adds a product name instead of autogenerating one
  -g yes                        Adds the Gruelag prefix to package ID and name
  -u <Program URL>              Downloads an installer file from the specified URL
  -i <Logo URL>                 Applies a logo to the package from the specified URL
  -v <Program version>          Sets the version of the program (not the package)
  -t <Package Type>             Sets the type of package to create, see below:

Package types:
  winbatch                      Creates a blank WinBatch package
  winbatch-inno                 Creates a blank INNO Installer WinBatch package
  winbatch-nsis                 Creates a blank NSIS Installer WinBatch package
  dosicon                       Creates a blank DosInAnIcon package
  execps                        Creates a blank ExecWith Powershell package
  zip                           Creates a blank ZIP based package
  msi                           Creates a blank MSI installer package

Optional parameters for "zip" type package:
  -e <filename.exe>     Specifies the launcher executable inside the ZIP file

Example for Kdenlive:

new-package.sh \
  kdenlive \
  -d "Kdenlive is a free and open-source video editing software." \
  -n "Kdenlive" \
  -g yes \
  -u "https://download.kde.org/stable/kdenlive/22.12/windows/kdenlive-22.12.3.exe" \
  -i "https://kdenlive.org/wp-content/uploads/2016/06/favico.png" \
  -v 22.12.3 \
  -t winbatch-nsis

Then adjust the Uninstall path in uninstall.ins

Most basic example for weblinks package type:

new-package.sh \
  link-collection \
  -t weblinks \
  -l "First link to Google;https://google.com;desktop" \
  -l "Another link but to Yahoo;https://yahoo.com;both"