mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Print config updated to support decktape args.
This commit is contained in:
parent
be846c046d
commit
7c4b04a6a2
|
@ -167,7 +167,8 @@ public class PrintService {
|
||||||
hostname());
|
hostname());
|
||||||
|
|
||||||
String deckTape = diskService.decktape();
|
String deckTape = diskService.decktape();
|
||||||
String[] cmd = { deckTape, REVEAL, slideshowUrl, filePath};
|
String[] cmd =
|
||||||
|
{ deckTape, REVEAL, slideshowUrl, filePath, decktapeArgs()};
|
||||||
int generated = shellService.exec(GIT_PDF, pp, branchPath, cmd);
|
int generated = shellService.exec(GIT_PDF, pp, branchPath, cmd);
|
||||||
|
|
||||||
if (generated != STATUS_OK) {
|
if (generated != STATUS_OK) {
|
||||||
|
@ -185,6 +186,11 @@ public class PrintService {
|
||||||
return runtime.config("gitpitch.hostname");
|
return runtime.config("gitpitch.hostname");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String decktapeArgs() {
|
||||||
|
String args = runtime.config("gitpitch.decktape.args");
|
||||||
|
return (args != null) ? args : "";
|
||||||
|
}
|
||||||
|
|
||||||
private static final String REVEAL = "reveal";
|
private static final String REVEAL = "reveal";
|
||||||
private static final String PITCHME_PDF = "PITCHME.pdf";
|
private static final String PITCHME_PDF = "PITCHME.pdf";
|
||||||
private static final String PRINT_NO_FRAGS = "false";
|
private static final String PRINT_NO_FRAGS = "false";
|
||||||
|
|
|
@ -373,11 +373,16 @@ gitpitch {
|
||||||
home = "/tmp/gitpitch/swap"
|
home = "/tmp/gitpitch/swap"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
decktape {
|
||||||
#
|
#
|
||||||
# Absolute path to decktape executable.
|
# Absolute path to decktape executable.
|
||||||
#
|
#
|
||||||
decktape {
|
|
||||||
home = "/usr/local/bin/decktape"
|
home = "/usr/local/bin/decktape"
|
||||||
|
#
|
||||||
|
# Optional args passed to decktape executable.
|
||||||
|
# For example, to workaround Decktape #103 related to
|
||||||
|
# Puppeteer Issue #290, uncomment and use the following:
|
||||||
|
# args = "--no-sandbox"
|
||||||
}
|
}
|
||||||
|
|
||||||
offline {
|
offline {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user