forked from Silverfish/proton-bridge
feat(GODT-2352): only copy resource file when needed.
This commit is contained in:
6
Makefile
6
Makefile
@ -96,9 +96,9 @@ endif
|
|||||||
|
|
||||||
ifeq "${GOOS}" "windows"
|
ifeq "${GOOS}" "windows"
|
||||||
go-build-finalize= \
|
go-build-finalize= \
|
||||||
powershell Copy-Item ${ROOT_DIR}/${RESOURCE_FILE} ${4} && \
|
$(if $(4),powershell Copy-Item ${ROOT_DIR}/${RESOURCE_FILE} ${4} &&,) \
|
||||||
$(call go-build,$(1),$(2),$(3)) && \
|
$(call go-build,$(1),$(2),$(3)) \
|
||||||
powershell Remove-Item ${4} -Force
|
$(if $(4), && powershell Remove-Item ${4} -Force,)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
${EXE_NAME}: gofiles ${RESOURCE_FILE}
|
${EXE_NAME}: gofiles ${RESOURCE_FILE}
|
||||||
|
|||||||
Reference in New Issue
Block a user