Skip to content

Commit 413652d

Browse files
committed
update bin
1 parent a29ce63 commit 413652d

File tree

9 files changed

+357
-44
lines changed

9 files changed

+357
-44
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.vscode
1+
/.vscode
22

33
# Created by https://www.gitignore.io/api/go
44
# Edit at https://www.gitignore.io/?templates=go

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
language: go
22
go:
3-
- 1.8
4-
- tip
3+
- stable
4+
script:
5+
- go get -v github.com/mitchellh/gox
6+
- go get -v github.com/golang/dep/cmd/dep
7+
- dep ensure -v -vendor-only
8+
- gox -osarch="linux/amd64" -output="workflow/bin/alfred-qiita-workflow" -ldflags="-X main.Version=`git describe --tags --match 'v*'`"
9+
- './workflow/bin/alfred-qiita-workflow --version'

Gopkg.lock

Lines changed: 227 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
[[constraint]]
3+
name = "github.com/codegangsta/cli"
4+
version = "1.20.0"
5+
6+
[[constraint]]
7+
name = "github.com/mitchellh/go-homedir"
8+
version = "1.1.0"
9+
10+
[[constraint]]
11+
branch = "master"
12+
name = "github.com/pascalw/go-alfred"
13+
14+
[[constraint]]
15+
name = "github.com/spf13/viper"
16+
version = "1.3.1"
17+
18+
[[constraint]]
19+
branch = "master"
20+
name = "github.com/uetchy/go-qiita"
21+
22+
[[constraint]]
23+
branch = "master"
24+
name = "golang.org/x/oauth2"
25+
26+
[prune]
27+
go-tests = true
28+
unused-packages = true
29+
30+
[[constraint]]
31+
name = "github.com/mitchellh/gox"
32+
version = "0.4.0"

Makefile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
ALFRED_WORKFLOW_PATH ?= ~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows
2-
BUNDLE_ID = co.randompaper.alfred-qiita-workflow
1+
ALFRED_WORKFLOW_PATH ?= ~/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows
2+
BUNDLE_ID = io.uechi.alfred-workflow.qiita
33
PACKAGE_FILE = info.plist
44
SYMLINK_TARGET = ${ALFRED_WORKFLOW_PATH}/${BUNDLE_ID}
55

66
default: build
77

88
build:
9-
go get ./...
10-
go build
11-
12-
dist:
13-
gox -osarch="darwin/amd64" -output="bin/{{.OS}}_{{.Arch}}"
9+
dep ensure
10+
gox -osarch="darwin/amd64" -output="workflow/bin/alfred-qiita-workflow"
1411

1512
link:
16-
ln -sf "$(PWD)" "${SYMLINK_TARGET}"
13+
ln -sf "$(PWD)/workflow" "${SYMLINK_TARGET}"
1714

1815
unlink:
1916
rm "${SYMLINK_TARGET}"

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,3 @@ You can find Alfred preferences path by `mdfind` command:
7272
```
7373
$ mdfind Alfred.alfredpreferences
7474
```
75-
76-
### Testing workflow
77-
78-
`not yet`

workflow/bin/alfred-qiita-workflow

11 MB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)