diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..40515f0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + name: Build executables + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: true + + - name: Update main branch code + run: git pull + working-directory: resources/ + + - name: Install Neutralino.js globally + run: npm install -g @neutralinojs/neu + + - name: Build + run: neu build --release + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist/Mapua100-release.zip diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a3dc9d --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Developer tools' files +.lite_workspace.lua + +# Neutralinojs binaries and builds +/bin +/dist + +# Neutralinojs client (minified) +neutralino.js + +# Neutralinojs related files +.storage +*.log diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1402ec7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "resources"] + path = resources + url = git@github.com:gdsc-mapua/Mapua100.git diff --git a/neutralino.config.json b/neutralino.config.json new file mode 100644 index 0000000..6ef6ce5 --- /dev/null +++ b/neutralino.config.json @@ -0,0 +1,51 @@ +{ + "$schema": "https://raw.githubusercontent.com/neutralinojs/neutralinojs/main/schemas/neutralino.config.schema.json", + "applicationId": "gdsc.mapua.mapua100", + "version": "1.0.0", + "defaultMode": "window", + "port": 0, + "documentRoot": "/resources/", + "url": "/", + "enableServer": true, + "enableNativeAPI": true, + "tokenSecurity": "one-time", + "logging": { + "enabled": true, + "writeToLogFile": true + }, + "nativeAllowList": [], + "modes": { + "window": { + "title": "MapĂșa University Centennial Countdown", + "width": 800, + "height": 500, + "minWidth": 400, + "minHeight": 200, + "fullScreen": true, + "alwaysOnTop": false, + "icon": "/resources/images/logo-gdsc.png", + "enableInspector": false, + "borderless": true, + "maximize": true, + "hidden": false, + "resizable": true, + "exitProcessOnClose": true + }, + "chrome": { + "width": 800, + "height": 500, + "args": "--user-agent=\"MapĂșa University Centennial Countdown\"", + "nativeBlockList": [ + "filesystem.*", + "os.*" + ] + } + }, + "cli": { + "binaryName": "Mapua100", + "resourcesPath": "/resources/", + "extensionsPath": "/extensions/", + "binaryVersion": "4.14.1", + "clientVersion": "3.12.0" + } +} diff --git a/resources b/resources new file mode 160000 index 0000000..a4063cb --- /dev/null +++ b/resources @@ -0,0 +1 @@ +Subproject commit a4063cb963ee01ef24b3a5e7db093130d951388b