https://github.com/cnk3x/portable
https://github.com/cnk3x/portable
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cnk3x/portable
- Owner: cnk3x
- License: mit
- Created: 2025-01-31T17:27:15.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T14:39:44.000Z (4 months ago)
- Last Synced: 2025-02-17T06:31:28.228Z (4 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mkp
auto make symlinks and shortcuts with 'portable.yaml' file for your application on windows
a portable.yaml file looks like this:
```yaml
bind:
- '${Roaming}\my_app'
- '${Document}\my_app'shortcut:
- name: My App
target: '${Roaming}\App\my_app.exe'
workdir: '${Roaming}\App'
args: "--hello world"
category: "My Apps"
```you can use the following variables:
- `${roaming}` - roaming directory `like: C:\Users\user\AppData\Roaming`
- `${local}` - local directory `like: C:\Users\user\AppData\Local`
- `${home}` - home directory `like: C:\Users\user`
- `${programs}` - programs directory `like: D:\Users\user\AppData\Local\Programs`
- `${document}` - document directory `like: C:\Users\user\Documents`
- `${desktop}` - desktop directory `like: C:\Users\user\Desktop`
- `${start}` - the start menu directory `like: D:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\PortableApps`
- `${base}` - the directory where the portable.yaml file is located
- more variables can find in [portable.go](portable.go)install
```bash
> go build -trimpath -ldflags '-s -w' -v github.com/cnk3x/portable/cmd/mkp> mkp -h
manage portable appUsage:
mkp.exe [command]Available Commands:
install install portable app
list list portable app
uninstall uninstall portable appFlags:
-d, --debug debug output
-h, --help help for mkp.exe
-v, --verbose verbose outputUse "mkp.exe [command] --help" for more information about a command.
```