1 Star 1 Fork 17

kuaikuai/XUnityDeploy

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
utils.rb 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
# require 3rd lib
require 'yaml'
require 'json'
require 'fileutils'
require 'pathname'
#untiy project path
UnityProjectPath = Pathname.new(File.dirname(__FILE__)).join("../../").cleanpath
#deploy unity path,
DeployProjectPath = File.join(UnityProjectPath, "XUnityDeploy")
#deploy config file path
ConfigPath = File.join(UnityProjectPath, "XUnityDeploy_configs")
#deploy build path
BuildPath = File.join(DeployProjectPath, "builds")
#deploy logs path
LogPath = File.join(DeployProjectPath, "logs")
#deploy tools path
ToolPath = File.join(DeployProjectPath, "tools")
# require XUnityDeploy Scripts
require File.expand_path(File.join(DeployProjectPath, "utils/optparse"))
require File.expand_path(File.join(DeployProjectPath, "utils/logger"))
require File.expand_path(File.join(DeployProjectPath, "utils/file_extend"))
require File.expand_path(File.join(DeployProjectPath, "utils/string_extend"))
require File.expand_path(File.join(DeployProjectPath, "utils/unity_cmd"))
require File.expand_path(File.join(DeployProjectPath, "utils/xcode_cmd"))
require File.expand_path(File.join(DeployProjectPath, "utils/svn_cmd"))
require File.expand_path(File.join(DeployProjectPath, "utils/git_cmd"))
require File.expand_path(File.join(DeployProjectPath, "utils/anysdk_cmd"))
require File.expand_path(File.join(DeployProjectPath, "utils/bearychat_cmd"))
require File.expand_path(File.join(DeployProjectPath, "unitys/unity"))
module XUnityDeploy
module Utils
extend self
# load config yml files
def load_config name
path = File.join(DeployConfig, name + ".yml")
return YAML::load(File.open(path))
end
end
def version
"1.0"
end
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/U3DDevelopment/XUnityDeploy.git
git@gitee.com:U3DDevelopment/XUnityDeploy.git
U3DDevelopment
XUnityDeploy
XUnityDeploy
master

搜索帮助