Compare commits
No commits in common. "master" and "v1.0.15" have entirely different histories.
|
@ -1,13 +1,10 @@
|
||||||
|
|
||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
## [1.0.21] - 2025-03-13
|
|
||||||
### Fixed
|
|
||||||
- Added helper methods, fixed Linux
|
|
||||||
|
|
||||||
## [1.0.5] - 2022-08-09
|
## [1.0.5] - 2022-08-09
|
||||||
### Fixed
|
### Fixed
|
||||||
- Unity task on windows not working
|
- Unity task on windows not working
|
||||||
|
|
|
@ -101,19 +101,6 @@ function unity_batch_exec($func, $build_target = "")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
task('unity_batch_exec', function(array $args)
|
|
||||||
{
|
|
||||||
if(count($args) != 2)
|
|
||||||
{
|
|
||||||
echo "Usage: gamectl unity_batch_exec <method name> <platform>\n";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$func = $args[0];
|
|
||||||
$platform = $args[1];
|
|
||||||
unity_batch_exec($func, $platform);
|
|
||||||
});
|
|
||||||
|
|
||||||
function unity_run_proc($shared_cmd)
|
function unity_run_proc($shared_cmd)
|
||||||
{
|
{
|
||||||
$app_dir = get('UNITY_APP_DIR');
|
$app_dir = get('UNITY_APP_DIR');
|
||||||
|
@ -175,8 +162,6 @@ function guess_unity_app_dir()
|
||||||
$path = "/Applications/Unity/";
|
$path = "/Applications/Unity/";
|
||||||
if(is_win())
|
if(is_win())
|
||||||
$path = getenv("ProgramFiles")."/Unity/";
|
$path = getenv("ProgramFiles")."/Unity/";
|
||||||
else if(is_linux())
|
|
||||||
$path = getenv("HOME")."/Unity/";
|
|
||||||
|
|
||||||
$proj_version_file = $GAME_ROOT.'/unity/ProjectSettings/ProjectVersion.txt';
|
$proj_version_file = $GAME_ROOT.'/unity/ProjectSettings/ProjectVersion.txt';
|
||||||
if(is_file($proj_version_file))
|
if(is_file($proj_version_file))
|
||||||
|
@ -197,20 +182,6 @@ function get_unity_dir()
|
||||||
return "$app_dir/Unity.app/Contents/";
|
return "$app_dir/Unity.app/Contents/";
|
||||||
}
|
}
|
||||||
|
|
||||||
function unity_build_cmd($shared_cmd)
|
|
||||||
{
|
|
||||||
$app_dir = get('UNITY_APP_DIR');
|
|
||||||
|
|
||||||
if(is_win())
|
|
||||||
$cmd = "\"$app_dir/Editor/Unity.exe\" $shared_cmd";
|
|
||||||
else if(is_linux())
|
|
||||||
$cmd = "\"$app_dir/Editor/Unity\" $shared_cmd";
|
|
||||||
else
|
|
||||||
$cmd = "$app_dir/Unity.app/Contents/MacOS/Unity $shared_cmd";
|
|
||||||
|
|
||||||
return $cmd;
|
|
||||||
}
|
|
||||||
|
|
||||||
function mono_mcs_bin()
|
function mono_mcs_bin()
|
||||||
{
|
{
|
||||||
if(!get("USE_UNITY_MONO"))
|
if(!get("USE_UNITY_MONO"))
|
||||||
|
|
Loading…
Reference in New Issue