|
Post by n00b on Dec 14, 2019 15:18:32 GMT -6
This is a simple tool I made to help in distributing RCBasic programs across different operating systems. A quick note about the Mac OS packaging. It will create an unsigned app. It will still run but the user will have to allow an unregistered app to run on there computer. If you want to sign your app you will need a Mac to do it. You can find a number of tutorials online about how to sign an app on Mac.
Here is a quick video showing how to use the tool:
|
|
|
Post by johnno56 on Dec 14, 2019 21:29:30 GMT -6
Cool... Thanks for the tool... Now, if I can only find something of mine worthy of exporting... lol
|
|
|
Post by tbird on Dec 15, 2019 8:21:09 GMT -6
Yes thank you for the tool, just watched the video, will definitely be using it in the future.
|
|
|
Post by n00b on Dec 27, 2019 13:13:03 GMT -6
I just uploaded an update to this tool. I tested some of the generated packages on a few more systems and I bundled more libraries to increase compatibility on more linux systems.
NOTE: This tool still only runs on linux
|
|
|
Post by johnno56 on Dec 27, 2019 16:13:39 GMT -6
Thanks for the upgrade... I am NOT a fan of Micro$oft, and I do enjoy it when I see 'Linux Only', but I am curious as to what the difficulties are in producing a tool for our 'open sourced' challenged cousins?
|
|
|
Post by n00b on Dec 27, 2019 16:45:27 GMT -6
johnno56 Technically, it probably wouldn't be too difficult but it would involve rewriting all the system() calls to Windows commands. The utility that I use to generate the icon for Mac is a linux utility so that would have to be substituted for a windows utility. And AppImage Kit is linux only software. That is not really an issue either because I could still generate the 64-bit package bundle for 64-bit linux systems. What it really comes down to is time. I don't mind investing time into something that could be useful but there doesn't seem to be a lot of Windows users on here. If there is a demand for a Windows or Mac version I might port it but I haven't gotten any requests from any Windows users.
|
|
|
Post by johnno56 on Dec 28, 2019 0:28:47 GMT -6
Cool. Thanks for the info...
|
|
|
Post by drfloyd on Feb 10, 2021 16:13:08 GMT -6
Linux Only ? it is working on windows now ?
|
|
|
Post by n00b on Feb 10, 2021 20:18:21 GMT -6
Its been working for Windows for almost a year. Just download it from rcbasic.com
|
|
|
Post by johnno56 on Aug 11, 2021 15:50:38 GMT -6
I may need a little help with the dist tool.
I managed successfully to distribute a game to both Lin64 and Win64 without error.
Web... not so much. The process completed but when I ran it... "Exception thrown, see JavaScript console" Geany's compile message window displayed a warning...
rcbasic "$HOME/Programs/rcbasic/tools/dist/app_build_gui" "/home/john/Desktop/bustout" "creepoutRC.bas" (in directory: /home/john/Desktop/bustout) icon_path=/home/john/Programs/rcbasic/tools/dist/icon/rcbasic.png Attempting to output to: app.properties APP_PKG_ARGS$ = TGT_PLATFORM=WEB PROJECT_NAME="creepoutRC" PROJECT_CATEGORY=Game APP_TYPE=Application TERMINAL_FLAG=false PROJECT_DIR="/home/john/Desktop/bustout" OUTPUT_DIR="/home/john/RCBasic Apps" ENABLE_WEB_THREADS=false ICON="/home/john/Programs/rcbasic/tools/dist/icon/rcbasic.png" SOURCE="creepoutRC.bas" ANDROID_APP_ID="com.mycompany.myApp" ANDROID_ORIENTATION="default" ANDROID_KEYSTORE="/home/john/Programs/rcbasic/tools/dist/../../keystore/.keystore " ANDROID_KEYSTORE_PASS="" ANDROID_ALIAS="" ANDROID_ALIAS_PASS="" ANDROID_RELEASE=0 ANDROID_DEBUG=1 ANDROID_JAVA_DIR="/home/john/Desktop/bustout/java" ANDROID_HOME=/home/n00b/Programs/android-dev/commandlinetools-linux-7302050_latest Build Command: rcbasic_build creepoutRC.bas in /home/john/Desktop/bustout Source: creepoutRC.bas RCBasic Binary Program compiled Compiled Successfully DEBUB: CLEAR /home/john/RCBasic Apps PROJECT_NAME: creepoutRC PROJECT_CATEGORY: Game APP_NAME: creepoutRC APP_TYPE: Application PROJECT_DIR: /home/john/Desktop/bustout OUTPUT_DIR: /home/john/RCBasic Apps ICON: /home/john/Programs/rcbasic/tools/dist/icon/rcbasic.png WEB PRG_NAME$ = creepoutRC WEB PRG_LOCATION$ = /home/john/Desktop/bustout WEB DST_LOCATION$ = /home/john/RCBasic Apps/creepoutRC_web ACTIVATE ... path is /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk Pre command: export rc_current_dir=$PWD && cd /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk && ./emsdk activate latest && chmod u+x emsdk_env.sh && . $PWD/emsdk_env.sh && cd $rc_current_dir && running command: em++ main.cpp theoraplay.c "-L/home/john/Programs/rcbasic/tools/dist/rc_em/libtheora-1.1.1/out/lib" "-I/home/john/Programs/rcbasic/tools/dist/rc_em/libtheora-1.1.1/out/include" -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2 -s USE_SDL_TTF=2 -s USE_SDL_MIXER=2 -s USE_SDL_NET=2 -s USE_OGG=1 -s USE_VORBIS=1 -ltheora -ltheoradec -o "/home/john/RCBasic Apps/creepoutRC_web/creepoutRC.html" --preload-file /home/john/Desktop/bustout@/ -O3 -s ASYNCIFY -s SDL2_IMAGE_FORMATS='["bmp","png","xpm"]' --use-preload-plugins -s TOTAL_MEMORY=134217728 -s ALLOW_MEMORY_GROWTH=1 -------------------------- Resolving SDK alias 'latest' to '2.0.26-lto' Resolving SDK version '2.0.26-lto' to 'sdk-releases-upstream-b92ba43f3ac92ab6f1ce6136a8c5969b68ba6968-64bit' Setting the following tools as active: node-14.15.5-64bit releases-upstream-b92ba43f3ac92ab6f1ce6136a8c5969b68ba6968-64bit Next steps: - To conveniently access emsdk tools from the command line, consider adding the following directories to your PATH: /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/node/14.15.5_64bit/bin /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/upstream/emscripten - This can be done for the current shell by running: source "/home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/emsdk_env.sh" - Configure emsdk in your shell startup scripts by running: echo 'source "/home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile Adding directories to PATH: PATH += /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk PATH += /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/upstream/emscripten PATH += /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/node/14.15.5_64bit/bin Setting environment variables: PATH = /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk:/home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/upstream/emscripten:/home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/node/14.15.5_64bit/bin:/home/john/.local/bin:/home/john/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin EMSDK = /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk EM_CONFIG = /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/.emscripten EMSDK_NODE = /home/john/Programs/rcbasic/tools/dist/rc_em/emsdk/node/14.15.5_64bit/bin/node In file included from main.cpp:44: ./rc_media.h:442:16: warning: enumeration values 'SDL_SENSOR_INVALID' and 'SDL_SENSOR_UNKNOWN' not handled in switch [-Wswitch] switch(SDL_SensorGetDeviceType(i)) ^ 1 warning generated. clang-13: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] RESULTS -------------------- Successfully Created Web App Compilation finished successfully.
-------------------------------------------------------------------------------- In regards to Android... I'm going to need instructions on that one...
|
|
|
Post by n00b on Aug 15, 2021 8:11:46 GMT -6
johnno56 Can you upload your web build? As for android, I can make a video on that.
|
|
|
Post by johnno56 on Aug 15, 2021 9:21:53 GMT -6
|
|
|
Post by n00b on Aug 15, 2021 20:38:40 GMT -6
Your web build works. You have to setup a local http server that supports web assembly to run it from your desktop. You can do this with python3 by running this command from the folder where your web build is at: python -m http.server And then going to http://localhost:8000/ in your browser and opening your html page. Once you are ready to publish it you can upload it to a host like itch.io. Here is your web build running in my web host: creepoutRCOn the android thing, I am making some changes which I will post here once its ready.
|
|
|
Post by johnno56 on Aug 16, 2021 5:04:16 GMT -6
I had to use python3 -m etc but it ran like a charm... I still got killed off... cannot believe it... my own game kills me off... lol
Many thanks for the assist...
|
|