瀏覽代碼

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>
tags/v1.2.0-rc1
Bo-Yi Wu 7 年之前
父節點
當前提交
e7ae13deef
共有 2 個檔案被更改,包括 8 行新增9 行删除
  1. 1
    1
      .gitignore
  2. 7
    8
      Makefile

+ 1
- 1
.gitignore 查看文件

@@ -45,4 +45,4 @@ coverage.out
/indexers
/log
/public/img/avatar
/integrations/gitea-integration
/integrations/gitea-integration

+ 7
- 8
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…
取消
儲存