diff --git a/README.md b/README.md index 13f35a9..04434d6 100644 --- a/README.md +++ b/README.md @@ -6,28 +6,36 @@ cURL for downloading the setup file and package logo. ``` Usage: - ./new-package.sh + new-package.sh Optional parameters: - -d Adds a description to the package - -n Adds a product name instead of autogenerating one - -g yes Adds the Gruelag prefix to package ID and name - -u Downloads an installer file from the specified URL - -i Applies a logo to the package from the specified URL - -v Sets the version of the program (not the package) - -t Sets the type of package to create, see below: + -d Adds a description to the package + -n Adds a product name instead of autogenerating one + -g yes Adds the Gruelag prefix to package ID and name, do not manually add Gruelag when using this! + -u Downloads an installer file from the specified URL + -i Applies a logo to the package from the specified URL + -t Sets the type of package to create, see below + -v Sets the version of the program (not the package) 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 Specifies the launcher executable inside the ZIP file + 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 + weblinks Creates a weblink creator package + +Parameters for 'zip' type package: + -e Optional, specifies the launcher executable inside the ZIP file + +Parameters for 'weblinks' type package: + -l ;;[] Can be used multiple times, specifies the URL and display name for one web link. + is optional and can hold one of the following values: + 'desktop' to create only desktop links on the public user desktop + 'startmenu' to create links only in the public user start menu + 'both' to create links at both places, this is the default ``` Example for Kdenlive: @@ -52,4 +60,4 @@ new-package.sh \ -t weblinks \ -l "First link to Google;https://google.com;desktop" \ -l "Another link but to Yahoo;https://yahoo.com;both" -``` \ No newline at end of file +``` diff --git a/new-package.sh b/new-package.sh index 898b02f..3fd765d 100644 --- a/new-package.sh +++ b/new-package.sh @@ -67,12 +67,15 @@ do i) imageUrl="${OPTARG}";; v) programVersion="${OPTARG}";; l) weblinks+=("${OPTARG}");; - *) - echo "Unrecognized option '${flag}'" h) usage exit 0 ;; + *) + echo "Unrecognized option '${flag}'" + usage + exit 1 + ;; esac done