diff --git a/Assets/Scenes/CodeDEV.unity b/Assets/Scenes/CodeDEV.unity index 6530665..11d5854 100644 --- a/Assets/Scenes/CodeDEV.unity +++ b/Assets/Scenes/CodeDEV.unity @@ -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} diff --git a/Assets/Scripts/Editor.meta b/Assets/Scripts/Editor.meta new file mode 100644 index 0000000..0c84b25 --- /dev/null +++ b/Assets/Scripts/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d436636dbd1f742f1b6162aed378db8e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/BuildScript.cs b/Assets/Scripts/Editor/BuildScript.cs new file mode 100644 index 0000000..6eefe84 --- /dev/null +++ b/Assets/Scripts/Editor/BuildScript.cs @@ -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(); + } +} diff --git a/Assets/Scripts/Editor/BuildScript.cs.meta b/Assets/Scripts/Editor/BuildScript.cs.meta new file mode 100644 index 0000000..b116ff9 --- /dev/null +++ b/Assets/Scripts/Editor/BuildScript.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f4d60d6c3548540a9b16f0b576036aba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/WebGLBuilder.cs b/Assets/Scripts/WebGLBuilder.cs new file mode 100644 index 0000000..b26cf9e --- /dev/null +++ b/Assets/Scripts/WebGLBuilder.cs @@ -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(); + } +} \ No newline at end of file diff --git a/Assets/Scripts/WebGLBuilder.cs.meta b/Assets/Scripts/WebGLBuilder.cs.meta new file mode 100644 index 0000000..4a0d785 --- /dev/null +++ b/Assets/Scripts/WebGLBuilder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f78523fb1f3ae4a50a0a58566e475bf0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/build.log b/build.log new file mode 100644 index 0000000..6f871df --- /dev/null +++ b/build.log @@ -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) + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f8670d1 --- /dev/null +++ b/build.sh @@ -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 diff --git a/zip.sh b/zip.sh deleted file mode 100644 index e1196e4..0000000 --- a/zip.sh +++ /dev/null @@ -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