Makefile to compile scriptmine. New script and desktop file to run with scriptmine enabled. I have yet to find a global location the scriptmine.so can be placed and have minetest work.

master
Dennis Payne 2016-12-15 18:01:49 -05:00
parent 6983e98b26
commit 0fcddd7bbb
3 changed files with 19 additions and 0 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
scriptmine.so:
gcc -shared -fPIC -o scriptmine.so scriptmine.c src/duktape.c -Isrc/ `pkg-config --cflags --libs luajit` -lm
clean:
rm -f scriptmine.so

3
minetest_with_js Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd ~/.minetest/mods/scriptmine/
minetest

11
minetest_with_js.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Minetest:JS
GenericName=Minetest:JS
Comment=Multiplayer infinite-world block sandbox
Exec=minetest_with_js
Icon=minetest
Terminal=false
Type=Application
Categories=Game;
StartupNotify=false
X-Desktop-File-Install-Version=0.22