swf2exe command stub

This commit is contained in:
Jindra Petřík
2024-01-21 16:33:50 +01:00
parent a9f339e5e6
commit 4a481cabf7
3 changed files with 67 additions and 1 deletions

View File

@@ -59,7 +59,8 @@ import picocli.CommandLine.ScopeType;
InstanceMetadata.class,
LinkReport.class,
Swf2Swc.class,
AbcMerge.class
AbcMerge.class,
Swf2Exe.class
},
descriptionHeading = "%n@|bold,underline Description|@:%n",
optionListHeading = "%n@|bold,underline Options|@:%n",

View File

@@ -0,0 +1,56 @@
package com.jpexs.decompiler.flash.cli.commands;
import com.jpexs.decompiler.flash.cli.VersionProvider;
import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind;
import com.jpexs.decompiler.flash.cli.commands.types.ExeExportMode;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.ParentCommand;
/**
*
* @author JPEXS
*/
@Command(
name = "swf2exe",
mixinStandardHelpOptions = true,
versionProvider = VersionProvider.class,
header = "Export SWF to executable file",
parameterListHeading = "%n@|bold,underline Parameters|@:%n",
synopsisHeading = "@|bold,underline Usage|@:",
footerHeading = "%n@|bold,underline Example|@:%n",
footer = {
"ffdec-cli swf2exe --mode=wrapper input.swf output.exe",
}
)
public class Swf2Exe implements Runnable {
@Option(
names = "--mode",
description = "Export mode. @|bold Enum values|@: ${COMPLETION-CANDIDATES}",
required = true
)
ExeExportMode mode;
@Parameters(
index = "0",
paramLabel = "IN_FILE",
description = "Input file"
)
String inFile;
@Parameters(
index = "1",
paramLabel = "OUT_FILE",
description = "Output file"
)
String outFile;
@Override
public void run() {
}
}

View File

@@ -0,0 +1,9 @@
package com.jpexs.decompiler.flash.cli.commands.types;
/**
*
* @author JPEXS
*/
public enum ExeExportMode {
wrapper, projector_win, projector_mac, projector_linux
}