Skip to content

Commit

Permalink
Add prebuilt windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Apr 23, 2020
1 parent 888dd31 commit fe19753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ sudo: false
language: go

go:
- "1.12"
before_script:
- go get
- "1.14"

# before we deploy, we go build for all operating systems we would like to support
before_deploy:
- mkdir -p release
- "GOOS=linux GOARCH=amd64 go build -o release/powerline-go-linux-amd64"
- "GOOS=darwin GOARCH=amd64 go build -o release/powerline-go-darwin-amd64"
# Windows doesn't work yet, due to the readonly segment
# - "GOOS=windows GOARCH=amd64 go build -o release/powerline-go-windows-amd64"
- "GOOS=windows GOARCH=amd64 go build -o release/powerline-go-windows-amd64"

deploy:
provider: releases
Expand All @@ -21,8 +18,7 @@ deploy:
file:
- "release/powerline-go-linux-amd64"
- "release/powerline-go-darwin-amd64"
# Windows doesn't work yet, due to the readonly segment
# - "release/powerline-go-windows-amd64"
- "release/powerline-go-windows-amd64"
skip_cleanup: true
on:
tags: true
4 changes: 0 additions & 4 deletions segment-readonly_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import (

func segmentPerms(p *powerline) []pwl.Segment {
cwd := p.cwd
if cwd == "" {
cwd, _ = os.LookupEnv("PWD")
}

const W_USR = 0002
// Check user's permissions on directory in a portable but probably slower way
fileInfo, _ := os.Stat(cwd)
Expand Down

0 comments on commit fe19753

Please sign in to comment.