mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 15:32:46 +01:00
fix: error from mktemp command in MacOS. (#1837)
* fix: error from mktemp command in MacOS. * [ci skip] udpate temp name. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
023cad4461
commit
e7ae13deef
2 changed files with 8 additions and 9 deletions
15
Makefile
15
Makefile
|
@ -1,12 +1,5 @@
|
|||
DIST := dist
|
||||
IMPORT := code.gitea.io/gitea
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := gitea.exe
|
||||
else
|
||||
EXECUTABLE := gitea
|
||||
endif
|
||||
|
||||
BINDATA := modules/{options,public,templates}/bindata.go
|
||||
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
|
||||
JAVASCRIPTS :=
|
||||
|
@ -22,7 +15,13 @@ SOURCES ?= $(shell find . -name "*.go" -type f)
|
|||
|
||||
TAGS ?=
|
||||
|
||||
TMPDIR := $(shell mktemp -d)
|
||||
TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'gitea-temp')
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := gitea.exe
|
||||
else
|
||||
EXECUTABLE := gitea
|
||||
endif
|
||||
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
|
|
Loading…
Reference in a new issue