Skip to content

Commit

Permalink
dynamically embed remote config
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Feb 5, 2025
1 parent c5f7587 commit f8aa489
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 2 additions & 0 deletions download_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
curl -O https://raw.githubusercontent.com/getlantern/lantern-binaries/refs/heads/main/fronted.yaml.gz
1 change: 1 addition & 0 deletions fronted.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type Fronted interface {
Close()
}

//go:generate ./download_config.sh
//go:embed fronted.yaml.gz
var embedFS embed.FS

Expand Down
Binary file added fronted.yaml.gz
Binary file not shown.

0 comments on commit f8aa489

Please sign in to comment.