Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopaper #30

Merged
merged 16 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .github/workflows/update-readme.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .vscode/scripts/copy.bat

This file was deleted.

36 changes: 0 additions & 36 deletions .vscode/scripts/copy.sh

This file was deleted.

36 changes: 0 additions & 36 deletions .vscode/scripts/launch.bat

This file was deleted.

36 changes: 0 additions & 36 deletions .vscode/scripts/launch.sh

This file was deleted.

130 changes: 100 additions & 30 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
{
"version": "2.0.0",
"presentation": {
"echo": false,
"showReuseMessage": false,
"clear": false
},
"options": {
"cwd": "${workspaceFolder}",
"env": {
"ENV_FILE": "${workspaceFolder}/.env",
"SERVER_DIRECTORY": "${workspaceFolder}/server",
"JAR_FILE": "${workspaceFolder}/target/regular-place-kit.jar"
}
},
"windows": {
"options": {
"env": {
"ENV_FILE": "${workspaceFolder}\\.env",
"SERVER_DIRECTORY": "${workspaceFolder}\\server",
"JAR_FILE": "${workspaceFolder}\\target\\regular-place-kit.jar"
}
}
},
"tasks": [
{
"label": "Set permissions for scripts",
"hide": true,
"label": "Script: Set permissions for scripts",
"type": "shell",
"command": "chmod +x ${workspaceFolder}/.vscode/scripts/*.sh",
"windows": {
"command": "echo Bill Gates"
},
"command": "chmod +x ${workspaceFolder}/scripts/sh/*.sh && echo Permissions set.",
"presentation": {
"reveal": "never",
"echo": false,
"showReuseMessage": false,
"close": true,
"revealProblems": "never"
"clear": true
},
"problemMatcher": []
},
Expand All @@ -34,21 +48,12 @@
{
"label": "Build and copy JAR to plugin directory",
"dependsOn": [
"Set permissions for scripts",
"Build regular-place-kit"
],
"dependsOrder": "sequence",
"type": "shell",
"command": "${workspaceFolder}/.vscode/scripts/copy.sh",
"command": "${workspaceFolder}/scripts/sh/copy-build.sh",
"windows": {
"command": "${workspaceFolder}/.vscode/scripts/copy.bat"
},
"options": {
"env": {
"ENV_FILE": "${workspaceFolder}/.env",
"SERVER_DIRECTORY": "${workspaceFolder}/server",
"JAR_FILE": "${workspaceFolder}/target/regular-place-kit.jar"
}
"command": "${workspaceFolder}/scripts/cmd/copy-build.cmd"
},
"group": {
"kind": "build",
Expand All @@ -59,9 +64,9 @@
{
"label": "Start Paper server",
"type": "shell",
"command": "${workspaceFolder}/.vscode/scripts/launch.sh",
"command": "${workspaceFolder}/scripts/sh/start-server.sh",
"windows": {
"command": "${workspaceFolder}/.vscode/scripts/launch.bat"
"command": "${workspaceFolder}/scripts/cmd/start-server.cmd"
},
"isBackground": true,
"presentation": {
Expand All @@ -75,12 +80,6 @@
"group": {
"kind": "test"
},
"options": {
"env": {
"ENV_FILE": "${workspaceFolder}/.env",
"SERVER_DIRECTORY": "${workspaceFolder}/server"
}
},
"problemMatcher": {
"owner": "java",
"fileLocation": [
Expand Down Expand Up @@ -121,6 +120,77 @@
},
"hide": true,
"problemMatcher": []
},
{
"label": "Script: Update Minecraft version",
"hide": true,
"type": "shell",
"command": "${workspaceFolder}/scripts/sh/update-version.sh",
"windows": {
"command": "${workspaceFolder}/scripts/cmd/update-version.cmd"
},
"presentation": {
"echo": false,
"showReuseMessage": false
},
"problemMatcher": []
},
{
"label": "Script: Update Minecraft patch",
"hide": true,
"type": "shell",
"command": "${workspaceFolder}/scripts/sh/update-patch.sh",
"windows": {
"command": "${workspaceFolder}/scripts/cmd/update-patch.cmd"
},
"problemMatcher": []
},
{
"label": "Script: Update pom/README to match project properties",
"type": "shell",
"command": "${workspaceFolder}/scripts/sh/update-pom.sh",
"windows": {
"command": "${workspaceFolder}/scripts/cmd/update-pom.cmd"
},
"problemMatcher": []
},
{
"label": "Project: Update Paper build",
"type": "shell",
"command": "${workspaceFolder}/scripts/sh/update-build.sh",
"windows": {
"command": "${workspaceFolder}/scripts/cmd/update-build.cmd"
},
"problemMatcher": []
},
{
"label": "Project: Update Minecraft version",
"dependsOn": [
"Script: Update Minecraft version",
"Project: Update Paper build",
"Script: Update pom/README to match project properties"
],
"dependsOrder": "sequence",
"problemMatcher": []
},
{
"label": "Project: Update Minecraft patch",
"dependsOn": [
"Script: Update Minecraft patch",
"Project: Update Paper build",
"Script: Update pom/README to match project properties"
],
"dependsOrder": "sequence",
"problemMatcher": []
},
{
"label": "Replace Paper server JAR with correct build",
"type": "shell",
"command": "${workspaceFolder}/scripts/sh/replace-server-jar.sh",
"windows": {
"command": "${workspaceFolder}/scripts/cmd/replace-server-jar.cmd"
},
"problemMatcher": []
}
],
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion guides/Beginners.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ And, VSCode is now all set up! You're almost ready to make your first changes.

## To be continued

Unfortunately, I can't really finish this part of the saga right now. But you can ask questions in the [OMG Dev Community](https://dev.omg.games/) if you need any more help. THANKS
Unfortunately, I can't really finish this part of the saga right now. But you can ask questions in the [OMG Dev Community](https://dev.omg.games/) if you need any more help. THANKS
Loading