Build scripts WIP 2
This commit is contained in:
parent
700bd82dd9
commit
1732d7523a
9 changed files with 109 additions and 5 deletions
|
@ -1543,7 +1543,7 @@ Prefab:
|
|||
- target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743,
|
||||
type: 2}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 38.545288
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743,
|
||||
type: 2}
|
||||
|
|
8
Assets/Scripts/Editor.meta
Normal file
8
Assets/Scripts/Editor.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d436636dbd1f742f1b6162aed378db8e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
34
Assets/Scripts/Editor/BuildScript.cs
Normal file
34
Assets/Scripts/Editor/BuildScript.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public class BuildSrcipt
|
||||
{
|
||||
static string[] scenes = { "Assets/Scenes/CodeDEV.unity", "Assets/Scenes/TitleScene.unity" };
|
||||
static string name = "DungeonDrifter";
|
||||
|
||||
[MenuItem("Build/Build WebGL")]
|
||||
static void BuildWebGL()
|
||||
{
|
||||
BuildPipeline.BuildPlayer(scenes, "./" + name + "_Web/" + name, BuildTarget.WebGL, BuildOptions.None);
|
||||
}
|
||||
|
||||
[MenuItem("Build/Build Windows")]
|
||||
static void BuildWindows()
|
||||
{
|
||||
BuildPipeline.BuildPlayer(scenes, "./" + name + "_Windows/" + name, BuildTarget.StandaloneWindows64, BuildOptions.None);
|
||||
}
|
||||
|
||||
[MenuItem("Build/Build Linux")]
|
||||
static void BuildLinux()
|
||||
{
|
||||
BuildPipeline.BuildPlayer(scenes, "./" + name + "_Linux/" + name, BuildTarget.StandaloneLinux64, BuildOptions.None);
|
||||
}
|
||||
|
||||
[MenuItem("Build/Build All")]
|
||||
public static void BuildAll()
|
||||
{
|
||||
BuildLinux();
|
||||
BuildWindows();
|
||||
BuildWebGL();
|
||||
}
|
||||
}
|
11
Assets/Scripts/Editor/BuildScript.cs.meta
Normal file
11
Assets/Scripts/Editor/BuildScript.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f4d60d6c3548540a9b16f0b576036aba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
12
Assets/Scripts/WebGLBuilder.cs
Normal file
12
Assets/Scripts/WebGLBuilder.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class WebGLBuilder : MonoBehaviour
|
||||
{
|
||||
public static void BuildWebGL()
|
||||
{
|
||||
string[] scenes = { "Assets/main.unity" };
|
||||
Debug.Log("BLUUUUUUUUUUUUUU");
|
||||
BuildSrcipt.BuildAll();
|
||||
//UnityEditor.BuildPlayerOptions options = new BuildPlayerOptions();
|
||||
}
|
||||
}
|
11
Assets/Scripts/WebGLBuilder.cs.meta
Normal file
11
Assets/Scripts/WebGLBuilder.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f78523fb1f3ae4a50a0a58566e475bf0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
23
build.log
Normal file
23
build.log
Normal file
|
@ -0,0 +1,23 @@
|
|||
Desktop is 1920 x 1080 @ 60 Hz
|
||||
GLX Extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_INTEL_swap_event GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync
|
||||
[Package Manager] Server::Start -- Port 54942 was selected
|
||||
|
||||
LICENSE SYSTEM [2018425 1:52:11] Next license update check is after 2018-04-25T15:47:16
|
||||
|
||||
|
||||
COMMAND LINE ARGUMENTS:
|
||||
/opt/UnityBeta/Editor/Unity
|
||||
-quit
|
||||
-logfile
|
||||
build.log
|
||||
-buildTarget
|
||||
./WebGL
|
||||
/home/piegames/Documents/GitHub/Bildschirmflausch.LD41
|
||||
Loading GUID <-> Path mappings...0.000068 seconds
|
||||
Loading Asset Database...0.006397 seconds
|
||||
Audio: FMOD Profiler initialized on port 54900
|
||||
AssetDatabase consistency checks...0.022087 seconds
|
||||
Build target platform name './WebGL' is not valid. Supported targets: Android, Linux, Linux64, LinuxUniversal, N3DS, OSXUniversal, PS4, PSM, PSP2, Switch, Tizen, Web, WebGL, WebStreamed, WiiU, Win, Win64, WindowsStoreApps, XboxOne, iOS, tvOS
|
||||
|
||||
(Filename: /home/builduser/buildslave/unity/build/Editor/Src/Application/Application.cpp Line: 813)
|
||||
|
9
build.sh
Executable file
9
build.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
unity-editor-beta -executeMethod Editor.BuildScript.BuildAll
|
||||
#unity-editor-beta -quit -batchmode -buildLinux64Player ./DungeonDrifter_Linux/DungeonDrifter
|
||||
#unity-editor-beta -quit -batchmode -buildWindows64Player ./DungeonDrifter_Windows/DungeonDrifter
|
||||
|
||||
#zip -r Build/DungeonDrifter_Windows.zip DungeonDrifter_Windows
|
||||
#zip -r Build/DungeonDrifter_Linux.zip DungeonDrifter_Linux
|
||||
#zip -r Build/DungeonDrifter_Web.zip DungeonDrifter_Web
|
4
zip.sh
4
zip.sh
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
zip -r Build/DungeonDrifter_Windows.zip DungeonDrifter_Windows
|
||||
zip -r Build/DungeonDrifter_Linux.zip DungeonDrifter_Linux
|
||||
zip -r Build/DungeonDrifter_Web.zip DungeonDrifter_Web
|
Loading…
Add table
Reference in a new issue