# UpTool2 Downloading software from online repos since 2019\ [![GitLab pipeline](https://img.shields.io/gitlab/pipeline/JFronny/UpTool2)](https://gitlab.com/JFronny/UpTool2/builds) [![Discord](https://img.shields.io/discord/466965965658128384)](https://discordapp.com/invite/UjhHBqt) [![Default Repo](https://img.shields.io/badge/Default-Repo-informational)](https://gitlab.com/JFronny/UpTool2/snippets/1988600) ## How to automate UpTool2 deployments You will want the assembly version to automatically increment. To achieve this you have to add this:\ `false`\ to your csproj in the main PropertyGroup and change your AssemblyVersion to `1.0.*` or something like this\ Now you can add this\ ```if exist "$(SolutionDir)Data\pkgtool.exe" ($(SolutionDir)Data\pkgtool.exe build --noLogo --binDir .) else if exist "%appdata%\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app\pkgtool.exe" ("%appdata%\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app\pkgtool.exe" build --noLogo --binDir .) else echo Cound not find Package build tools, skipping```\ as a PostBuild event to automatically run pkgtool. Customize this if you need to.\ For GitHub actions I wrote [this](https://github.com/JFronny/CC-Clicker/blob/master/.github/workflows/main.yml).\ If you copy it, make sure to replace the descriptions and ID under the `Generate XML` step\ You can also add something like this to your Readme: [![UpTool2](https://img.shields.io/badge/Get%20it-on%20UpTool2-blue)](https://jfronny.gitlab.io/home/uptool)\ (Look at the source for the MD Code) ## Folder layout - %APPDATA%\UpTool2 - Apps - __APPGUID - `info.xml` Local copy of some app information, like [this](https://gitlab.com/JFronny/UpTool2#app-layout) but missing ID, File, Hash, Platform and Icon - [`package.zip`](https://gitlab.com/JFronny/UpTool2#package-layout) The package that was downloaded on install - `app` The app install path - `__APPFILES` Copy of the app files from above, may contain user-configs - `info.xml` File used by UpTool2 for saving info - `Version` The installed version. Not used anymore - `Repos` The list of package repos - `__REPO` A repository - `Name` The display name of the repository - `Link` The source of the repo xml - `Local Repo` A preprocessed copy of the online repos - [`__APP`](https://gitlab.com/JFronny/UpTool2#app-layout) A normal app with the icon processed as Base64 - `Install` The folder containing the actual tool - `__ZIP CONTENTS` The app files - `tmp` A temporary folder used during updates - `__FILES FOR UPDATE` The downloaded update files ## Repo layout - `repo` The main repo tag - `__APPLINK` Links to external app XMLs - `__REPOLINK` Links to external repos - [`__APP`](https://gitlab.com/JFronny/UpTool2#app-layout) Apps ## App layout - app - `Name` Name of the application - `Description` Description that gets displayed on the right panel - `Version` Version for update checking, might get removed - `ID` The Guid used for identification - `File` A link to the package file - `Hash` The files SHA256 Hash - `Icon` The apps icon, (optional) - `MainFile` Main binary, used for starting, (optional) - `Platform` The platform this works on (optional, defaults to current) ## Package layout - `Install.bat` The script for installing the app - `Remove.bat` The script for removing the app - `Data` The folder containing binaries - `__APPFILES` The binaries