Pocketmine init #79
@ -1,8 +1,6 @@
|
||||
name: The nightly Docker Image
|
||||
name: The Docker Image Check
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- dependabot/**
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
Docker:
|
||||
@ -27,9 +25,8 @@ jobs:
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
file: Docker/Dockerfile
|
||||
push: false
|
||||
tags: |
|
||||
sirherobrine23/bdsmaneger:nightly
|
||||
bdsmaneger/maneger:nightly
|
||||
bdsmaneger:test_${{ github.run_id }}
|
||||
platforms: linux/amd64,linux/arm64
|
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@ -2,9 +2,11 @@ name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, stable ]
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches: [ main, stable ]
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "38 17 * * */3"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: Npm dev package Publish
|
||||
name: Dev Publish NPM and Docker Image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@ -11,18 +11,16 @@ on:
|
||||
- 'CHANGELOG.md'
|
||||
- 'Docker/*/**'
|
||||
jobs:
|
||||
Npm-Publish:
|
||||
Npm-Publish-Dev:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Npm and Node Setup
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 15.x
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- name: Edit Version
|
||||
run: |
|
||||
id_run1=$(echo ${{ github.run_id }} |cut -b 1-2)
|
||||
@ -33,6 +31,31 @@ jobs:
|
||||
sed "s|$old|\"version\": \"$new_version\",|g" package.json > package2.json
|
||||
cat package2.json > package.json
|
||||
rm -rfv package2.json
|
||||
|
||||
- name: Install Packages
|
||||
run: npm install
|
||||
|
||||
Docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_ORG_USER }}
|
||||
password: ${{ secrets.DOCKER_ORG_PASS }}
|
||||
- name: checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Build Nightly Image
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
file: Docker/Dockerfile
|
||||
tags: |
|
||||
sirherobrine23/bdsmaneger:nightly
|
||||
bdsmaneger/maneger:nightly
|
||||
platforms: linux/amd64,linux/arm64
|
2
.github/workflows/merge_depedencies.yaml
vendored
2
.github/workflows/merge_depedencies.yaml
vendored
@ -1,6 +1,8 @@
|
||||
name: "Dependabot Automerge - Action"
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- dependabot/**
|
||||
check_suite:
|
||||
types:
|
||||
- completed
|
||||
|
@ -38,3 +38,9 @@ bdsmaneger/maneger:latest
|
||||
### Microsoft Azure Virtual machine
|
||||
|
||||
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FThe-Bds-Maneger%2FAzure_VMs%2Fmain%2Fdeploy.json) More Information Access the repository: [Azure VMs](https://github.com/The-Bds-Maneger/Azure_VMs)
|
||||
|
||||
## Common Mistakes
|
||||
|
||||
* ### On Windows if you are receiving any error from platform-tools, follow these [steps](https://github.com/nodejs/node-gyp#on-windows), and install [python](https://www.python.org/downloads/).
|
||||
|
||||
* ### If you are using Branch main, there may be several errors and corrections may take time to arrive, I recommend using the Tags.
|
||||
|
@ -21,8 +21,26 @@ if (typeof fetch === "undefined") {global.fetch = require("node-fetch")}
|
||||
})
|
||||
} else if (process.platform === "darwin") throw Error("You will have to install cURL manually, download page: https://curl.se/download.html");
|
||||
else if (process.platform === "win32") {
|
||||
if (Math.trunc(require("os").release()) === "10") throw Error("Please make sure you are on the latest version of Windows 10");
|
||||
else throw Error(`Please manually install curl for Windows ${Math.trunc(require("os").release())}, download page: https://curl.se/download.html`)
|
||||
// Version major.minor
|
||||
// ------------------------------------------ -------------
|
||||
// Windows 10, Windows Server 2016 10.0
|
||||
// Windows 8.1, Windows Server 2012 R2 6.3
|
||||
// Windows 8, Windows Server 2012 6.2
|
||||
// Windows 7, Windows Server 2008 R2 6.1
|
||||
// Windows Vista, Windows Server 2008 6.0
|
||||
// Windows XP Professional x64 Edition, 5.2
|
||||
// Windows Server 2003, Windows Home Server
|
||||
// Windows XP 5.1
|
||||
// Windows 2000 5.0
|
||||
var WindowsVersion = require("os").release()
|
||||
if (WindowsVersion.includes("10.0")) WindowsVersion = 10
|
||||
else if (WindowsVersion.includes("6.3")) WindowsVersion = 8.1
|
||||
else if (WindowsVersion.includes("6.2")) WindowsVersion = 8
|
||||
else if (WindowsVersion.includes("6.1")) WindowsVersion = 7
|
||||
else WindowsVersion = "unsupported"
|
||||
|
||||
if (WindowsVersion === 10) throw Error("Please make sure you are on the latest version of Windows 10");
|
||||
else throw Error(`Please manually install curl for Windows ${WindowsVersion}, download page: https://curl.se/download.html`)
|
||||
} else throw Error("Please install curl manually, download page: https://curl.se/download.html")
|
||||
}
|
||||
})()
|
@ -8,12 +8,12 @@
|
||||
"private": false,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "",
|
||||
"test": "exit 0",
|
||||
"eslint": "eslint .",
|
||||
"eslint:fix": "eslint --fix .",
|
||||
"start": "node bin/bds_maneger.js",
|
||||
"debug": "node bin/debug.js",
|
||||
"postinstall": "node ./postinstall/curlCheck.js"
|
||||
"postinstall": "node curlCheck.js"
|
||||
},
|
||||
"bin": {
|
||||
"bds_maneger": "./bin/bds_maneger.js"
|
||||
|
Reference in New Issue
Block a user