Skip to content

Commit

Permalink
Terminacion
Browse files Browse the repository at this point in the history
  • Loading branch information
Trollhunters501PC authored Sep 8, 2024
1 parent d6e01c1 commit 75bd8f7
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,45 @@ Github Action to package your CreatorCraft game!
You can now package your CreatorCraft game on Github!

If you want to know how to create a game in CreadorCraft I recommend you check out the [CreadorCraft Maker wiki](https://creadorcraft-maker.blogspot.com/p/documentacionwiki.html) you can also run many programming languages for your game!

## Example Work
```yml
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
steps:
- uses: actions/checkout@v4
- name: CreadorCraft-Maker
uses: Trollhunters501/[email protected]
with:
path: "./src"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: My Game Example
path: gameBuildCCM/TestName 1.0.0.creadorcraftgame.zip
```
### Structure Repo:
myName/RepoGameName/src
- manifest.json:
```json
{
"name": "TestName",
"description": "Test game",
"mainHtml": "index.html",//dir main html file
"mainCSS": "index.css",
"mainJS": "index.js"
}
```
- index.html
- index.css
- index.js

more info in Wiki!
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ try{
}

const sourceDir = dirGame;
if(!fs.existsSync(dirGame+"/gameBuild")){
fs.mkdirSync(dirGame+"/gameBuild");
if(!fs.existsSync("./gameBuildCCM")){
fs.mkdirSync("./gameBuildCCM");
}
const outPath = dirGame+"/gameBuild/"+manifestCCG.name+" "+manifestCCG.version+".creadorcraftgame.zip";
const outPath = "./gameBuildCCM/"+manifestCCG.name+" "+manifestCCG.version+".creadorcraftgame.zip";

zipDirectory(sourceDir, outPath);
});
Expand Down

0 comments on commit 75bd8f7

Please sign in to comment.