fix(deark): 合併格式類別,UI 只顯示單一 extract 選項
This commit is contained in:
parent
9b4ecadc79
commit
737e925ac7
1 changed files with 21 additions and 20 deletions
|
|
@ -17,8 +17,9 @@ import { ExecFileFn } from "./types";
|
||||||
|
|
||||||
export const properties = {
|
export const properties = {
|
||||||
from: {
|
from: {
|
||||||
// 壓縮/封存格式
|
// 所有 deark 支援的格式合併為一個類別
|
||||||
archive: [
|
files: [
|
||||||
|
// 壓縮/封存格式
|
||||||
"zip",
|
"zip",
|
||||||
"lha",
|
"lha",
|
||||||
"lzh",
|
"lzh",
|
||||||
|
|
@ -41,9 +42,7 @@ export const properties = {
|
||||||
"deb",
|
"deb",
|
||||||
"ar",
|
"ar",
|
||||||
"a",
|
"a",
|
||||||
],
|
// 圖片格式
|
||||||
// 圖片格式
|
|
||||||
images: [
|
|
||||||
"ico",
|
"ico",
|
||||||
"cur",
|
"cur",
|
||||||
"ani",
|
"ani",
|
||||||
|
|
@ -87,13 +86,22 @@ export const properties = {
|
||||||
"jbig",
|
"jbig",
|
||||||
"jbg",
|
"jbg",
|
||||||
"fpx",
|
"fpx",
|
||||||
],
|
// 字型格式
|
||||||
// 字型格式
|
"fon",
|
||||||
fonts: ["fon", "fnt", "psf", "bdf", "pcf"],
|
"fnt",
|
||||||
// 可執行檔 / 資源檔
|
"psf",
|
||||||
binary: ["exe", "dll", "com", "ne", "mz", "res", "rsrc", "icl"],
|
"bdf",
|
||||||
// 其他格式
|
"pcf",
|
||||||
other: [
|
// 可執行檔 / 資源檔
|
||||||
|
"exe",
|
||||||
|
"dll",
|
||||||
|
"com",
|
||||||
|
"ne",
|
||||||
|
"mz",
|
||||||
|
"res",
|
||||||
|
"rsrc",
|
||||||
|
"icl",
|
||||||
|
// 其他格式
|
||||||
"swf",
|
"swf",
|
||||||
"fla",
|
"fla",
|
||||||
"amiga",
|
"amiga",
|
||||||
|
|
@ -105,18 +113,11 @@ export const properties = {
|
||||||
"crt",
|
"crt",
|
||||||
"tap",
|
"tap",
|
||||||
"tzx",
|
"tzx",
|
||||||
"wav",
|
|
||||||
"riff",
|
"riff",
|
||||||
"avi",
|
|
||||||
"ani",
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
to: {
|
to: {
|
||||||
archive: ["extract"],
|
files: ["extract"],
|
||||||
images: ["extract"],
|
|
||||||
fonts: ["extract"],
|
|
||||||
binary: ["extract"],
|
|
||||||
other: ["extract"],
|
|
||||||
},
|
},
|
||||||
// deark 輸出可能是多個檔案,使用 archive 模式
|
// deark 輸出可能是多個檔案,使用 archive 模式
|
||||||
outputMode: "archive" as const,
|
outputMode: "archive" as const,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue