samtupy / nvgt

The Nonvisual Gaming Toolkit

Home Page:https://nvgt.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request: cross-bundling for different systems from one

patricus3 opened this issue · comments

hi.
I would want to be able to cross-bundle the game for multiple platforms, just from one environment, is it viable to inplement someday?

  ok, so there's a pragma for platforms, but you can't use 2 of them to compile for 3 platforms, could you make it work so I can do it without modifying the src when ever I need to recompile for all 3 platforms?

Hello @patricus3.

It is currently not possible to select multiple compile operating systems, but you can achieve a similar concept using bat command line script.

Here is an example:

@echo off
title Compilation in Progress - Please Do Not Close This Window
:: Compile for Windows
echo Compiling for Windows...
c:/nvgt/nvgt -c -pwindows your_script.nvgt
move /Y "your_script.exe" "release/windows/your_script.exe"
echo Windows compilation complete.

:: Compile for Linux
echo Compiling for Linux...
c:/nvgt/nvgt -c -plinux your_script.nvgt
move /Y "your_script" "release/linux/your_script"
echo Linux compilation complete.

:: Compile for macOS
echo Compiling for macOS...
c:/nvgt/nvgt -c -pmac your_script.nvgt
move /Y "your_script" "release/mac/your_script"
echo macOS compilation complete.

pause

I hope it helps!