Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion out/Exporters/Html5Exporter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions out/khamake.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Exporters/Html5Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class Html5Exporter extends KhaExporter {
let mp4_size = 0;
let mp3 = false;
let mp3_size = 0;
if (!this.isDebugHtml5()) {
if (!this.isDebugHtml5() && !this.options.oggonly) {
mp4 = await convert(from, path.join(this.options.to, this.sysdir(), to + '.mp4'), this.options.aac);
if (mp4) {
mp4_size = (await fs.stat(path.join(this.options.to, this.sysdir(), to + '.mp4'))).size;
Expand Down
1 change: 1 addition & 0 deletions src/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class Options {
ogg: string;
aac: string;
mp3: string;
oggonly: boolean;
h264: string;
webm: string;
wmv: string;
Expand Down
5 changes: 5 additions & 0 deletions src/khamake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ let options: Array<any> = [
value: true,
default: ''
},
{
full: 'oggonly',
description: 'Generate only ogg files for the html5 target, without `mp3/mp4` fallback',
value: false,
},
{
full: 'krafix',
description: 'Location of krafix shader compiler',
Expand Down