-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fcdee4
commit 427ce43
Showing
8 changed files
with
43 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
node_modules | ||
client/dist | ||
server/build | ||
server/games | ||
games/ | ||
server/lakefile.olean | ||
**/lake-packages/ | ||
**/.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Importing games | ||
|
||
There is an mechanism to import games into your server. In order to use this mechanism, you need | ||
to create a [Github Access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). A fine-grained access token with only reading rights for public | ||
repos will suffice. | ||
|
||
You need to set the environment variables `LEAN4GAME_GITHUB_USER` and `LEAN4GAME_GITHUB_TOKEN` | ||
with your user name and access token. | ||
|
||
Then you can call: | ||
|
||
> https://{website}/import/trigger/{owner}/{repo} | ||
where you replace: | ||
- website: The website your server runs on, e.g. `localhost:3000` | ||
- owner, repo: The owner and repository name of the game you want to load from github. | ||
|
||
will trigger to download the latest version of your game from github onto your server. | ||
Once this import reports "Done", you should be able to play your game under: | ||
|
||
> https://{website}/#/g/{owner}/{repo} | ||
## data management | ||
Everything downloaded remains in the folder `lean4game/games`. | ||
the subfolder `tmp` contains downloaded artifacts and can be deleted without loss. | ||
The other folders should only contain the built lean-games, sorted by owner and repo. |
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,3 +1,2 @@ | ||
build | ||
adam | ||
nng | ||
build/ | ||
games/ |
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 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ OWNER=$2 | |
REPO=$3 | ||
|
||
echo "Creating folders" | ||
cd ../.. | ||
cd .. | ||
# mkdir -p games | ||
cd games | ||
pwd | ||
|
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