Compare commits
2 Commits
v1.0.0
...
6b24eb7e07
Author | SHA1 | Date | |
---|---|---|---|
6b24eb7e07 | |||
b8c7234ed9
|
@ -36,4 +36,10 @@ To process a file directly from the command line:
|
|||||||
./drmdtool -f /path/to/file.drmd
|
./drmdtool -f /path/to/file.drmd
|
||||||
```
|
```
|
||||||
|
|
||||||
This will download the file and save it in the base directory specified in the config.
|
This will download the file and save it in the base directory specified in the config.
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
- Filename Sanitation (Makes new directory on /... oops)
|
||||||
|
- GoPlay Fix
|
||||||
|
- Windows?
|
||||||
|
- Proper UI?
|
6
main.go
6
main.go
@ -16,6 +16,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"embed"
|
||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -60,12 +62,14 @@ type ProgressInfo struct {
|
|||||||
|
|
||||||
var templates *template.Template
|
var templates *template.Template
|
||||||
|
|
||||||
|
var templateFS embed.FS
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if err := os.MkdirAll(uploadDir, 0755); err != nil {
|
if err := os.MkdirAll(uploadDir, 0755); err != nil {
|
||||||
fmt.Printf("Error creating upload directory: %v\n", err)
|
fmt.Printf("Error creating upload directory: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
templates = template.Must(template.ParseGlob("templates/*"))
|
templates = template.Must(template.ParseFS(templateFS, "templates/*"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Reference in New Issue
Block a user