Skip to content

Commit a61f6b5

Browse files
committed
fix windows build
1 parent 702c6a0 commit a61f6b5

6 files changed

Lines changed: 21 additions & 8 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 h2337
3+
Copyright (c) 2022 aidlx
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img align="right" src="https://raw.githubusercontent.com/h2337/rssnix/refs/heads/master/logo.svg">
1+
<img align="right" src="https://raw.githubusercontent.com/aidlx/rssnix/refs/heads/master/logo.svg">
22

33
## TOC
44

@@ -10,13 +10,13 @@
1010

1111
## Demonstration
1212

13-
![Demo](https://raw.githubusercontent.com/h2337/rssnix/refs/heads/master/demo.gif)
13+
![Demo](https://raw.githubusercontent.com/aidlx/rssnix/refs/heads/master/demo.gif)
1414

1515
## Installation
1616

1717
You need to have Go >=1.19 installed.
1818

19-
`git clone https://github.com/h2337/rssnix --depth=1 && cd rssnix && go install`
19+
`git clone https://github.com/aidlx/rssnix --depth=1 && cd rssnix && go install`
2020

2121
## Flags
2222

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/h2337/rssnix
1+
module github.com/aidlx/rssnix
22

33
go 1.19
44

main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ import (
77
"os/exec"
88
"path/filepath"
99
"strings"
10-
"syscall"
1110

1211
"github.com/gilliek/go-opml/opml"
1312
"github.com/go-ini/ini"
1413
log "github.com/sirupsen/logrus"
1514
"github.com/urfave/cli/v2"
1615
)
1716

18-
const Version = "0.4.0"
17+
const Version = "0.4.1"
1918

2019
func addFeed(name, url string) error {
2120
sanitizedName := strings.TrimSpace(name)
@@ -55,7 +54,7 @@ func addFeed(name, url string) error {
5554
}
5655

5756
func main() {
58-
syscall.Umask(0)
57+
setUmask(0)
5958
if err := LoadConfig(); err != nil {
6059
log.Fatal(err)
6160
}

umask_nonunix.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//go:build !unix
2+
3+
package main
4+
5+
func setUmask(mask int) {}

umask_unix.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build unix
2+
3+
package main
4+
5+
import "golang.org/x/sys/unix"
6+
7+
func setUmask(mask int) {
8+
unix.Umask(mask)
9+
}

0 commit comments

Comments
 (0)