mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-21 00:54:31 +02:00
feat: add command for arbitrary URLs (#137)
* feat: install command for direct downloads * use sha1 instead of sha256 * apply suggestions * feat: parse urls instead of using hasprefix * stop by default and add force flag * Implement various fixes and improvements Co-authored-by: Tricked <72335827+SkyBlockDev@users.noreply.github.com> Co-authored-by: comp500 <comp500@users.noreply.github.com>
This commit is contained in:
@@ -391,7 +391,7 @@ func createFileMeta(mod *modrinthApi.Project, version *modrinthApi.Version, file
|
||||
if mod.Slug != nil {
|
||||
path = modMeta.SetMetaPath(filepath.Join(viper.GetString("meta-folder-base"), folder, *mod.Slug+core.MetaExtension))
|
||||
} else {
|
||||
path = modMeta.SetMetaPath(filepath.Join(viper.GetString("meta-folder-base"), folder, *mod.Title+core.MetaExtension))
|
||||
path = modMeta.SetMetaPath(filepath.Join(viper.GetString("meta-folder-base"), folder, core.SlugifyName(*mod.Title)+core.MetaExtension))
|
||||
}
|
||||
|
||||
// If the file already exists, this will overwrite it!!!
|
||||
|
Reference in New Issue
Block a user