mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 20:43:04 +00:00
16 lines
418 B
C#
16 lines
418 B
C#
using System.IO;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace SanAndreasUnity.Editor
|
|
{
|
|
public class AndroidBuilder
|
|
{
|
|
static void Build ()
|
|
{
|
|
string buildPath = Path.Combine(Application.dataPath, $"../Build/{nameof(SanAndreasUnity)}.apk");
|
|
|
|
BuildPipeline.BuildPlayer(EditorBuildSettings.scenes, buildPath, BuildTarget.Android, BuildOptions.None);
|
|
}
|
|
}
|
|
}
|