File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ XCODEBUILD ?= xcodebuild
1616NDK_TOOLCHAIN_BIN ?= $(wildcard $(ANDROID_NDK_ROOT ) /toolchains/llvm/prebuilt/* /bin)
1717ZIP_URL ?=
1818ZIP_URL_DOWNLOAD_OUTPUT ?= /tmp/godot-lua-pluginscript-unzip-to-build.zip
19+ ZIP_TEMP_FOLDER ?= /tmp/godot-lua-pluginscript-unzip-to-build
1920
2021
2122CFLAGS += -std=c11 -Ilib/godot-headers -Ilib/high-level-gdnative -Ilib/luajit/src
@@ -238,12 +239,14 @@ set-version:
238239 plugin/plugin.cfg
239240
240241unzip-to-build :
242+ $(RM ) -r $(ZIP_TEMP_FOLDER ) /*
241243ifneq (,$(filter http ://% https://% ,$(ZIP_URL ) ))
242244 curl -L $(ZIP_URL ) -o $(ZIP_URL_DOWNLOAD_OUTPUT )
243- cd build && unzip -u $(ZIP_URL_DOWNLOAD_OUTPUT )
245+ unzip $( ZIP_URL_DOWNLOAD_OUTPUT ) -d $(ZIP_TEMP_FOLDER )
244246else
245- cd build && unzip -u $(ZIP_URL )
247+ unzip $(ZIP_URL) -d $(ZIP_TEMP_FOLDER )
246248endif
249+ cp -R $(ZIP_TEMP_FOLDER)/addons/godot-lua-pluginscript/build/. build
247250
248251
249252# Miscelaneous targets
You can’t perform that action at this time.
0 commit comments