mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-27 06:20:17 +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);
|
|
}
|
|
}
|
|
}
|