Skip to content

Commit

Permalink
Change executable filename (in virtual filesystem) to ./latex
Browse files Browse the repository at this point in the history
and remove unneccessary additions to filesystem
  • Loading branch information
fzimmermann89 committed Oct 26, 2015
1 parent 5439aa8 commit 286bdc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions pdftex.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,8 @@ var PDFTeX = function(opt_workerPath) {
];
else
commands = [
curry(self, 'FS_createFolder', ['/', 'bin', true, true]),
curry(self, 'FS_createDataFile', ['/bin', 'this.program', '', true, true]),
curry(self, 'FS_createDataFile', ['/', 'input.tex', source_code, true, true]),
curry(self, 'FS_createLazyFile', ['/', 'latex.fmt', 'latex.fmt', true, true]),
curry(self, 'FS_createFolder', ['/bin/', 'share', true, true]),
curry(self, 'FS_createLazyFile', ['/bin/', 'texmf.cnf', './texlive/texmf-dist/web2c/texmf.cnf', true, true]),
curry(self, 'FS_createLazyFilesFromList', ['/', 'texlive.lst', './texlive', true, true]),
];

Expand Down
5 changes: 4 additions & 1 deletion post.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
self['postMessage'](JSON.stringify({'command': 'ready'}));
shouldRunNow = true;
//shouldRunNow = true;
Module['calledRun']=false;
Module['thisProgram']='/latex';
FS.createDataFile("/",Module['thisProgram'],"dummy for kpathsea",true,true);

0 comments on commit 286bdc0

Please sign in to comment.