Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Created August 9, 2025 23:52
Show Gist options
  • Save ericoporto/2772dac6c9936c4aed72f69f96a08f1f to your computer and use it in GitHub Desktop.
Save ericoporto/2772dac6c9936c4aed72f69f96a08f1f to your computer and use it in GitHub Desktop.
hack to download tap test from emscripten builds
filePath = '/home/web_user/saved_games/ags3-auto-test/agstest.tap'
fileContent = FS.readFile(filePath, { encoding: 'binary' })
blob1 = new Blob([fileContent], { type: 'text/plain' });
downloadLink = document.createElement('a');
downloadLink.href = URL.createObjectURL(blob1);
downloadLink.download = 'agstest.tap';
document.body.appendChild(downloadLink);
downloadLink.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment