feat: improve ArtCraft integration and configurable file opening
This commit is contained in:
1 parent
3bc62d2b69
commit
80bc2c458d
60 files changed
+1738
-232
No files matched your search
@@ -27,7 +27,7 @@ var Catalog = []Tool{
|
||||
tool("lightcraft", "LightCraft", ".dng", ".dng .cr2 .cr3 .nef .nrw .arw .pef .orf .rw2 .raf .jpg .jpeg .png .tif .tiff", ".jpg .jpeg .png .tif .tiff", "image", "drop"),
|
||||
tool("designcraft", "DesignCraft", ".designcraft", ".designcraft .idml", ".designcraft .idml .pdf .png .jpg .jpeg", "file", "drop"),
|
||||
tool("figcraft", "FigCraft", ".figcraft", ".figcraft", ".figcraft .svg .png .jpg .jpeg .pdf", "palette", "drop"),
|
||||
tool("soundcraft", "SoundCraft", ".scraftz", ".scraftz .wav .flac .mp3 .ogg .aif .aiff .m4a .mid .midi", ".scraftz .wav .flac .mp3 .ogg .aif .aiff .m4a .mid .midi", "music", "drop"),
|
||||
tool("soundcraft", "SoundCraft", ".scraftz", ".scraftz", ".scraftz .wav .flac .mp3 .ogg .aif .aiff .m4a .mid .midi", "music", "drop"),
|
||||
tool("cadcraft", "CADCraft", ".dxf", ".dxf .dwg", ".dxf .pdf .svg .png", "table", "native"),
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ func containsExtension(list []string, extension string) bool {
|
||||
}
|
||||
|
||||
// Known web builds that could not complete server file round trips.
|
||||
// Keep installation available so users can update them when upstream fixes land.
|
||||
// The installer rejects these exact builds; newer fixed releases remain eligible.
|
||||
func CompatibilityIssue(id, build string) string {
|
||||
if id == "soundcraft" && build == "v0.11.0-ca335c74d511" {
|
||||
return "demoOnly"
|
||||
|
||||
@@ -201,6 +201,9 @@ func (m *Manager) install(ctx context.Context, id string) error {
|
||||
return errors.New("unexpected release download URL")
|
||||
}
|
||||
build := rel.Tag + "-" + digest[:12]
|
||||
if issue := CompatibilityIssue(id, build); issue != "" {
|
||||
return fmt.Errorf("incompatible web release: %s", issue)
|
||||
}
|
||||
if m.manifest(id).Build == build {
|
||||
return precompress(filepath.Join(m.Root, id, "versions", build))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user