Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopunk committed Nov 22, 2024
1 parent 76e4af9 commit 17a6606
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,25 +285,32 @@ It now supports downloading files using `wget`. This can be useful for fetching
Example:

```lua
-- modules/1piece/init.lua
-- modules/apps/init.lua
return {
wget = {
url = "https://app1piece.com/1Piece-4.2.1.zip",
output = "/Applications/1Piece.app",
zip = true,
{
url = "https://app1piece.com/1Piece-4.2.1.zip",
output = "/Applications/1Piece.app",
zip = true,
},
{
url = "https://fakedomain.com/fake.app",
output = "/Applications/Fake.app",
},
},
}
```

This will:

- Download the file from the specified URL.
- Unzip it to the specified output path.
- Unzip it if `zip = true`.
- Install it to the specified output path.

Just use it like any other module:

```bash
$ dot 1piece
$ dot apps
```

> [!NOTE]
Expand Down
2 changes: 1 addition & 1 deletion dot.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env lua

local version = "0.3.0"
local version = "0.3.1"

local MOCK_BREW = false
local MOCK_WGET = false
Expand Down

0 comments on commit 17a6606

Please sign in to comment.