From a19902cc7cc63d4c7864c29b474dee765e021292 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Sun, 26 Feb 2023 20:53:31 -0800 Subject: [PATCH] Release configs --- .gitignore | 1 - build_web_release.bat | 2 +- main.c | 2 +- server/go.mod | 5 +++++ 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 server/go.mod diff --git a/.gitignore b/.gitignore index 272a074..3e528ca 100644 --- a/.gitignore +++ b/.gitignore @@ -61,7 +61,6 @@ desktop.rdbg *.pdb # Kernel Module Compile Results -*.mod* *.cmd .tmp_versions/ modules.order diff --git a/build_web_release.bat b/build_web_release.bat index f3626bc..bfcf0a4 100644 --- a/build_web_release.bat +++ b/build_web_release.bat @@ -6,7 +6,7 @@ mkdir build_web_release call run_codegen.bat || goto :error echo Building release -emcc -sEXPORTED_FUNCTIONS=_main,_end_text_input -sEXPORTED_RUNTIME_METHODS=ccall,cwrap -DNDEBUG -O2 -DDEVTOOLS -s ALLOW_MEMORY_GROWTH -Ithirdparty -Igen main.c -o build_web_release\index.html --preload-file assets --shell-file web_template.html || goto :error +emcc -sEXPORTED_FUNCTIONS=_main,_end_text_input -sEXPORTED_RUNTIME_METHODS=ccall,cwrap -DNDEBUG -O2 -s ALLOW_MEMORY_GROWTH -Ithirdparty -Igen main.c -o build_web_release\index.html --preload-file assets --shell-file web_template.html || goto :error goto :EOF diff --git a/main.c b/main.c index d624f10..d845622 100644 --- a/main.c +++ b/main.c @@ -108,7 +108,7 @@ typedef enum EntityKind #ifdef DEVTOOLS #define SERVER_URL "http://localhost:8090" #else -#error "No release server url defined" +#define SERVER_URL "http://149.28.99.84:8090" #endif // null terminator always built into buffers so can read properly from data diff --git a/server/go.mod b/server/go.mod new file mode 100644 index 0000000..2d1419c --- /dev/null +++ b/server/go.mod @@ -0,0 +1,5 @@ +module github.com/creikey/rpgpt + +go 1.19 + +require github.com/sashabaranov/go-gpt3 v1.2.1 // indirect