Cygwin Tool Bundling

Опубликовано: 13 Октябрь 2024
на канале: Michael Chu
273
4

Topic Index and External Links
0:00 Intro
1:18 cygcheck demo
Syntax: cygcheck toolName

1:57 Bundling script
Syntax: bundle_cygwin_exe.bash toolName saveTo
Available at: https://github.com/michaelgchu/Cygwin...

3:54 Using a Bundle
a) Open Windows Command shell, navigate to the bundle folder, and run the tools
b) Add the bundle folder to the %PATH% variable

6:25 Using a Bundled Shell Script
a) bash scriptName [arguments]
Requirements:
Create a "tmp" folder in the parent directory of the bundle folder
Commands in the script must use the './' path

b) bash -c "export PATH=::; scriptName [arguments]"
Requirements:
Create a "tmp" folder in the parent directory of the bundle folder
The bundle folder must be named to match whatever you specified as the interpreter path of your script
e.g. "#!/bin/bash" means the folder must be named "bin"
Commands do not have to be preceded by './', thanks to the PATH export

8:52 Sharing your Bundle