Skip to content

Commit

Permalink
drop 'version'
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Sep 27, 2023
1 parent d915b9b commit 2f388ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ APPPREFIX = $(PREFIX)/share/applications
ICONPREFIX = $(PREFIX)/share/icons/hicolor

FLATPAK = io.github.vinegarhq.Vinegar
VERSION = `git describe --tags --dirty`

GO = go
GO_LDFLAGS = -s -w
Expand Down
11 changes: 3 additions & 8 deletions cmd/vinegar/vinegar.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@ import (
"github.com/vinegarhq/vinegar/wine"
)

var (
Version string
BinPrefix string
)
var BinPrefix string

func usage() {
fmt.Fprintln(os.Stderr, "usage: vinegar [-config filepath] player|studio [args...]")
fmt.Fprintln(os.Stderr, "usage: vinegar [-config filepath] exec prog [args...]")
fmt.Fprintln(os.Stderr, " vinegar [-config filepath] edit|kill|uninstall|delete|version|install-webview2")
fmt.Fprintln(os.Stderr, " vinegar [-config filepath] edit|kill|uninstall|delete|install-webview2")
os.Exit(1)
}

Expand All @@ -39,16 +36,14 @@ func main() {

switch cmd {
// These commands don't require a configuration
case "delete", "edit", "uninstall", "version":
case "delete", "edit", "uninstall":
switch cmd {
case "delete":
Delete()
case "edit":
editor.EditConfig(*configPath)
case "uninstall":
Uninstall()
case "version":
fmt.Println(Version)
}
// These commands (except player & studio) don't require a configuration,
// but they require a wineprefix, hence wineroot of configuration is required.
Expand Down

0 comments on commit 2f388ca

Please sign in to comment.