diff options
author | natrixaeria <janng@gmx.de> | 2019-05-25 02:06:41 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-25 02:06:41 +0200 |
commit | 90be5f8d63e77ee51256270dec018e2c7448e115 (patch) | |
tree | 949159bcdc5cdff23a73f5f03172a17897a87e7c /WebInterface/wasm/asm-paint/deploy.py | |
parent | 233106ee4fc302579af0224611e55be5b1479f51 (diff) |
Resetup webassembly on the cool way
Diffstat (limited to 'WebInterface/wasm/asm-paint/deploy.py')
-rwxr-xr-x[-rw-r--r--] | WebInterface/wasm/asm-paint/deploy.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/WebInterface/wasm/asm-paint/deploy.py b/WebInterface/wasm/asm-paint/deploy.py index fce7a02..b64c322 100644..100755 --- a/WebInterface/wasm/asm-paint/deploy.py +++ b/WebInterface/wasm/asm-paint/deploy.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + from socket import (socket, AF_INET, SOCK_STREAM, IPPROTO_TCP, SOL_SOCKET, SO_REUSEADDR) from threading import Thread @@ -10,8 +12,8 @@ HTML_MIME = 'text/html' REQUESTS = { '/': ('index.html', HTML_MIME), '/loader.js': ('loader.js', JS_MIME), - '/asm-paint.js': ('target/wasm32-unknown-emscripten/release/asm-paint.js', JS_MIME), - '/asm_paint.wasm': ('target/wasm32-unknown-emscripten/release/asm_paint.wasm', WASM_MIME), + '/asm_paint_rs.js': ('pkg/asm_paint_rs.js', JS_MIME), + '/asm_paint_rs_bg.wasm': ('pkg/asm_paint_rs_bg.wasm', WASM_MIME), } PAGE_404 = '''<!doctype html><html><head></head> |