-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added ffmpeg download in cli (#1)
feat: added cmds - `port`, `no-thumb`, `get-ffmpeg` refactor: moved all pkgs to internal chore: removed cors, upgraded go version to 1.23
- Loading branch information
Showing
24 changed files
with
1,010 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module github.com/mysterion/avrp | ||
|
||
go 1.22.3 | ||
|
||
require github.com/rs/cors v1.11.0 // indirect | ||
go 1.23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
github.com/rs/cors v1.11.0 h1:0B9GE/r9Bc2UxRMMtymBkHTenPkHDv0CW4Y98GBY+po= | ||
github.com/rs/cors v1.11.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
package dist | ||
|
||
import ( | ||
"log" | ||
"os" | ||
"path/filepath" | ||
|
||
"github.com/mysterion/avrp/internal/utils" | ||
) | ||
|
||
var VersionFile string | ||
|
||
func Init() { | ||
VersionFile = filepath.Join(utils.ConfigDir, "VERSION") | ||
} | ||
|
||
// checks if dist is present | ||
func Valid() bool { | ||
_, err := os.Stat(filepath.Join(utils.DistDir, "index.html")) | ||
return err == nil | ||
} | ||
|
||
func Delete() error { | ||
return os.RemoveAll(utils.DistDir) | ||
} | ||
|
||
// returns sha of aframe-vr-player dist | ||
func Ver() string { | ||
d, err := os.ReadFile(VersionFile) | ||
|
||
if err != nil { | ||
log.Printf("WARN: while reading dist version, %v\n", err.Error()) | ||
return "" | ||
} | ||
|
||
return string(d) | ||
} | ||
package dist | ||
|
||
import ( | ||
"log" | ||
"os" | ||
"path/filepath" | ||
|
||
"github.com/mysterion/avrp/internal/utils" | ||
) | ||
|
||
var VersionFile string | ||
|
||
func Init() { | ||
VersionFile = filepath.Join(utils.ConfigDir, "VERSION") | ||
} | ||
|
||
// checks if dist is present | ||
func Valid() bool { | ||
_, err := os.Stat(filepath.Join(utils.DistDir, "index.html")) | ||
return err == nil | ||
} | ||
|
||
func Delete() error { | ||
return os.RemoveAll(utils.DistDir) | ||
} | ||
|
||
// returns sha of aframe-vr-player dist | ||
func Ver() string { | ||
d, err := os.ReadFile(VersionFile) | ||
|
||
if err != nil { | ||
log.Printf("WARN: while reading dist version, %v\n", err.Error()) | ||
return "" | ||
} | ||
|
||
return string(d) | ||
} |
Oops, something went wrong.