Skip to content

Commit

Permalink
ci: win setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kijimaD committed Oct 21, 2023
1 parent dc957d0 commit f60c089
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ services:
- .:/data
ports:
- 7777:80

win:
image: mcr.microsoft.com/powershell:latest
working_dir: /work
volumes:
- .:/work
extra_hosts:
- "host.docker.internal:host-gateway"
command: /bin/sh
16 changes: 8 additions & 8 deletions pkg/upl.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ func TaskWithBaseurl(baseurl string) TaskOption {

func (t *Task) buildUpload(cookie string) string {
basecmds := []string{
"%s",
"%s",
"-#",
"-H 'Cookie: filemanager=%s'",
"--compressed",
"-F 'p='",
"-F 'fullpath=%s'",
"-F 'file=@%s;type=application/zip'",
`%s`,
`%s`,
`-#`,
`-H "Cookie: filemanager=%s"`,
`--compressed`,
`-F "p="`,
`-F "fullpath=%s"`,
`-F "file=@%s;type=application/zip"`,
}
basecmd := strings.Join(basecmds, " ")
cmd := fmt.Sprintf(basecmd,
Expand Down

0 comments on commit f60c089

Please sign in to comment.