diff --git a/Makefile b/Makefile index 5cb3f28..f528d04 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: obj/c2t-96h.so link +all: obj/c2t-96h.so link addproxy c2t: @if [ -z "${C2TDIR}" ]; then echo "Please set C2TDIR environment variable to the path of c2t source tree."; exit 1; fi @@ -18,6 +18,11 @@ link: mkdir -p bin emcc --shell-file sendalo.html.tpl -s INVOKE_RUN=0 -s EXIT_RUNTIME=0 -s ALLOW_MEMORY_GROWTH=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=['callMain'] -o bin/sendalo.html obj/c2t-96h.so +addproxy: + head --bytes=-1 sendalo.php.tpl > bin/sendalo.php + cat bin/sendalo.html >> bin/sendalo.php +# rm bin/sendalo.html + test: cd bin; python3 -m http.server 65020 diff --git a/README.md b/README.md index d116e29..c689b08 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Sendalo ## Web / mobile frontend for c2t -Sendalo is a web/mobile interface to an emscripten build of the excellent c2t-96h tool by datajerk (https://github.com/datajerk/c2t). c2t is a really clever program that allows transferring disk images to a running Apple II (among other things). +Sendalo is a web/mobile interface to an emscripten build of the excellent c2t tool by datajerk (https://github.com/datajerk/c2t). c2t is a really clever program that allows transferring disk images to a running Apple II (among other things). Why I think this is useful? diff --git a/sendalo.html.tpl b/sendalo.html.tpl index 4aa4588..0f5f5bc 100644 --- a/sendalo.html.tpl +++ b/sendalo.html.tpl @@ -2,8 +2,51 @@ + + Sendalo + + +
+

Sendalo!

+

Insert image URL or upload file

+
+ +
+
+ + + + + + + +
+ +

+ What's this? +

+
+

+ Sendalo is a web/mobile interface to an emscripten build of the excellent + c2t tool by + datajerk. +

+

+ c2t is a really clever program that allows transferring disk images to + a running Apple II (among other things). +

+ +

Why do I think this is useful?

+

+ +

+ c2t can do a lot more than this, don’t forget to check the official + project page on GitHub to learn more. +

+
+
+ + + - - - - - - {{{ SCRIPT }}} + diff --git a/sendalo.php.tpl b/sendalo.php.tpl new file mode 100644 index 0000000..a2270a1 --- /dev/null +++ b/sendalo.php.tpl @@ -0,0 +1,6 @@ +