This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| build [2025/05/28 19:51] – created cherin | build [2025/07/29 17:34] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Git Winch Build Automation | + | ====== Git Winch Build Automation ====== |
| === What is it? === | === What is it? === | ||
| - | Git Winch includes a lightweight build automation capability designed for users who want to perform actions after a successful file push. While originally created for non-technical teams, it also supports technical use-cases like triggering builds for software development or office automation tasks. | + | //Git Winch// includes a lightweight build automation capability designed for users who want to perform actions after a successful file push. While originally created for non-technical teams, it also supports technical use-cases like triggering builds for software development or office automation tasks. |
| This system uses a simple `build.bat` file and GNU Make to selectively process updated files after every successful push. | This system uses a simple `build.bat` file and GNU Make to selectively process updated files after every successful push. | ||
| === Why is it useful? === | === Why is it useful? === | ||
| - | - Ensures repeatable and automatic post-push actions | + | - Ensures repeatable and automatic post-push actions.\\ |
| - | - Reduces errors from manual post-processing. | + | - Reduces errors from manual post-processing.\\ |
| - | - Helps both technical and non-technical users organize file workflows with minimal effort. | + | - Helps both technical and non-technical users organize file workflows with minimal effort.\\ |
| - Ideal for setting up automated build folders or staging areas for server deployment. | - Ideal for setting up automated build folders or staging areas for server deployment. | ||
| === When does it run? === | === When does it run? === | ||
| - | This build process runs automatically **after a successful push** from Git Winch. The `build.bat` file in the repository is triggered and can invoke GNU Make to execute post-push file actions. | + | This build process runs automatically **after a successful push** from //Git Winch//. The `build.bat` file in the repository is triggered and can invoke GNU Make to execute post-push file actions. |
| + | |||
| + | **Caution**\\ | ||
| + | If you have an anti-virus installed, make sure that it allows the execution of the `build.bat` file. | ||
| === How does it work? === | === How does it work? === | ||
| Line 19: | Line 21: | ||
| ==== 0. Prerequisite: | ==== 0. Prerequisite: | ||
| - | - Download `make.exe` (Windows 32-bit) from a trusted GNU source. | + | - Download `make.exe` (Windows 32-bit) from https:// |
| - | - Place it in `C: | + | - Place it in `C: |
| - Add this path to your **System PATH environment variable** so `make` can be used globally. | - Add this path to your **System PATH environment variable** so `make` can be used globally. | ||
| - | ==== 1. Create | + | ==== 1. Create |
| Decide where you want the processed files to be collected. | Decide where you want the processed files to be collected. | ||
| - | Example: `D: | + | Example: `D: |
| ==== 2. Define Source Folder ==== | ==== 2. Define Source Folder ==== | ||
| - | Your working folder (e.g., `D: | + | Your working folder (e.g., `D: |
| ==== 3. Create a Makefile ==== | ==== 3. Create a Makefile ==== | ||
| Write a makefile (ASCII format) named, for example, `makefile.lll.txt`. Place it anywhere accessible. | Write a makefile (ASCII format) named, for example, `makefile.lll.txt`. Place it anywhere accessible. | ||
| - | Here’s a minimal | + | Here’s a working example: |
| - | ```make | + | < |
| + | make | ||
| SRC_DIR ?= D:/ | SRC_DIR ?= D:/ | ||
| - | DST_DIR ?= D:/Project/GroupInGit/build/txt | + | DST_DIR ?= D:/Project/gitwinch/build/artifacts |
| FILES = $(notdir $(wildcard $(SRC_DIR)/ | FILES = $(notdir $(wildcard $(SRC_DIR)/ | ||
| Line 47: | Line 50: | ||
| if not exist $(subst /, | if not exist $(subst /, | ||
| copy $(subst /, | copy $(subst /, | ||
| + | |||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | [[advanced? | ||