Skip to content

Commit

Permalink
Merge pull request #20 from ejt1/deployment
Browse files Browse the repository at this point in the history
update pre-release.yml
  • Loading branch information
ejt1 authored Feb 6, 2024
2 parents db2237f + daf77b0 commit 476ed2c
Show file tree
Hide file tree
Showing 584 changed files with 174,861 additions and 10 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
run: |
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
- name: Copy Distributables
shell: bash
run: |
mkdir -p final/bin
mv dist/* final/bin
- name: Configure CMake
run: cmake -A Win32 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/d2bs-${{ env.sha_short }} -DD2BS_VERSION="${{ env.sha_short }}"
run: cmake -A Win32 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/final -DD2BS_VERSION="${{ env.sha_short }}"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Expand All @@ -30,14 +36,13 @@ jobs:
run: ctest -C ${{env.BUILD_TYPE}}

- name: Install
run: cmake --install ${{github.workspace}}/build --prefix ${{ github.workspace }}/d2bs-${{ env.sha_short }} --config ${{env.BUILD_TYPE}}
run: cmake --install ${{github.workspace}}/build --prefix ${{ github.workspace }}/final --config ${{env.BUILD_TYPE}}

- name: Package
uses: thedoctor0/zip-release@main
with:
type: 'zip'
directory: ${{ github.workspace }}
path: ${{ github.workspace }}/d2bs-${{ env.sha_short }}/*
directory: ${{ github.workspace }}/final/bin
filename: d2bs-${{ env.sha_short }}.zip

- name: Release
Expand All @@ -48,4 +53,4 @@ jobs:
prerelease: true
title: "Pre-release Build"
files: |
d2bs-${{ env.sha_short }}.zip
final/bin/d2bs-${{ env.sha_short }}.zip
15 changes: 10 additions & 5 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ jobs:
run: |
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
- name: Copy Distributables
shell: bash
run: |
mkdir -p final/bin
mv dist/* final/bin
- name: Configure CMake
run: cmake -A Win32 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/d2bs-${{ env.D2BS_VERSION }} -DD2BS_VERSION="${{ env.D2BS_VERSION }}"
run: cmake -A Win32 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/final -DD2BS_VERSION="${{ env.D2BS_VERSION }}"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Expand All @@ -32,14 +38,13 @@ jobs:
run: ctest -C ${{env.BUILD_TYPE}}

- name: Install
run: cmake --install ${{github.workspace}}/build --prefix ${{ github.workspace }}/d2bs-${{ env.D2BS_VERSION }} --config ${{env.BUILD_TYPE}}
run: cmake --install ${{github.workspace}}/build --prefix ${{ github.workspace }}/final --config ${{env.BUILD_TYPE}}

- name: Package
uses: thedoctor0/zip-release@main
with:
type: 'zip'
directory: ${{ github.workspace }}
path: ${{ github.workspace }}/d2bs-${{ env.D2BS_VERSION }}/*
directory: ${{ github.workspace }}/final/bin
filename: d2bs-${{ env.D2BS_VERSION }}.zip

- name: Release
Expand All @@ -50,4 +55,4 @@ jobs:
prerelease: false
title: ${{ env.D2BS_VERSION }}
files: |
d2bs-${{ env.D2BS_VERSION }}.zip
final/bin/d2bs-${{ env.D2BS_VERSION }}.zip
136 changes: 136 additions & 0 deletions dist/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
/* eslint-disable linebreak-style */
// Standard Formatting rules for Kolbot scripts
// Compatible with ESLint plugin

module.exports = {
"root": true,
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true,
}
},
"env": {
"es6": true,
},
"globals": {
// The following globals are defined within D2BS, or are actually defined in the source code
"include": true,
"print": true,
"me": true,
"td": true,
"getTickCount": true,
"delay": true,
"getParty": true,
"takeScreenshot": true,
"getUnit": true,
"quit": true,
"clickMap": true,
"getBaseStat": true,
"clickItem": true,
"getCursorType": true,
"getPresetUnits": true,
"getDistance": true,
"copyUnit": true,
"getRoom": true,
"getLocaleString": true,
"scriptBroadcast": true,
"isIncluded": true,
"showConsole": true,
"getInteractedNPC": true,
"getDialogLines": true,
"getUIFlag": true,
"sendPacket": true,
"getPacket": true,
"getPath": true,
"rand": true,
"PresetUnit": true,
"getPresetUnit": true,
"getArea": true,
"getWaypoint": true,
"getScript": true,
"Room": true,
"say": true,
"load": true,
"addEventListener": true,
"getMercHP": true,
"checkCollision": true,
"gold": true,
"getLocation": true,
"login": true,
"sendCopyData": true,
"getControl": true,
"debugLog": true,
"getCollision": true,
"transmute": true,
"submitItem": true,
"createGame": true,
"joinGame": true,
"Line": true,
"removeEventListener": true,
"Unit": true,
"Party": true,
"UtilitySystem": true,
"moveNPC": true,
"getPlayerFlag": true,
"clickParty": true,
"dopen": true,
"Items": true,
"Text": true,
"File": true,
"js_strict": true,
"handler": true,
"sendKey": true,
"md5": true,
"module": true,
"require": true,
"Box": true,
"Frame": true,
"revealLevel": true,
"hideConsole": true,
},
"rules": {
// enable additional rules
"indent": ["warn", 2],
"linebreak-style": ["off", "windows"],
"semi": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"object-curly-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"space-infix-ops": "error",
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"arrow-spacing": "error",
"arrow-body-style": ["error", "as-needed"],
"space-before-blocks": "error",
"key-spacing": ["error", { "mode": "strict", "beforeColon": false, "afterColon": true }],
"no-mixed-spaces-and-tabs": "error",
"no-trailing-spaces": ["warn", { "ignoreComments": true, "skipBlankLines": true }],
"no-whitespace-before-property": "error",
"comma-style": ["error", "last"],
"eol-last": ["error", "always"],
"block-scoped-var": "error",
"no-var": "warn",
"curly": ["error", "multi-line"],
"dot-notation": "warn",
"eqeqeq": ["error", "smart"],
"no-caller": "error",
"no-floating-decimal": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-self-compare": "error",
"no-case-declarations": "off",
"no-with": "error",
"no-shadow": "off",
"no-use-before-define": "off",
"no-prototype-builtins": "off",
"quotes": ["warn", "double", { "avoidEscape": true }],
"no-constant-condition": ["error", { "checkLoops": false }],
"no-extra-label": "error",
//"no-labels": ["error", {"allowLoop": true}], // in the future no loops ;)
"no-unused-vars": ["warn", { "vars": "local" }],
"no-fallthrough": ["error", { "commentPattern": "break[\\s\\w]*omitted" }],
"no-undef": ["off", "always"],
"no-extra-boolean-cast": ["off", "always"],
"max-len": ["warn", { "code": 120, "ignoreComments": true, "ignoreUrls": true }],
}
};
3 changes: 3 additions & 0 deletions dist/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "limedrop"]
path = limedrop
url = https://github.com/noah-/limedrop
6 changes: 6 additions & 0 deletions dist/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"thebguy.vsnip-check"
]
}
7 changes: 7 additions & 0 deletions dist/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.rulers": [
120
],
"editor.tabSize": 2,
"editor.detectIndentation": false
}
Binary file added dist/D2Bot.exe
Binary file not shown.
52 changes: 52 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[**Join the Forums!**](https://blizzhackers.discourse.group)

[**Join the Discord Channel!**](https://discord.gg/z844XRhxFC)

[**Join the Slack Channel!**](https://join.slack.com/t/blizzhackers/shared_invite/zt-qahq0w11-uzETJNgKmS9DdApJSRQqaw)

## General

1. D2BS, D2Bot and kolbot # are educational tools with an open source developer community. These tools are meant to be used offline or on private servers that explicitly allow them. These tools are not meant to be abused on battle.net (a Blizzard Entertainment entity).

2. D2BS, D2Bot # and kolbot are provided as is and for FREE. If you paid or are asked to pay for these tools, do not proceed.

3. These tools are not inteded for cheating, maliciously exploiting, or illegal use of software.

## kolbot

* this name is better known than others, even it is just a part of d2bs (diablo 2 botting system) which contain 3 distinct components:
* D2BS - core (C++)
* D2Bot# - manager (C#)
* kolbot - script library (JS)

* use the mainline (trunk) branch

If you want to contribute to kolbot code, make sure you use [ESLint options for kolbot code](https://gist.githubusercontent.com/Nishimura-Katsuo/2d6866666c7acf10047c486a15a7fe60/raw/99ef9c2995929c492ef856772ff346e0f19709cd/.eslintrc.js) or [JSLint options for kolbot code](https://gist.githubusercontent.com/noah-/d917342e52281d54c404e0b2c18b0c6e/raw/fbade95e38b103d2654b90d85ef62a51c4295153/jslint.config) for final polish.
If you want to contribute to d2bs/d2bot#, come to irc.synirc.net/d2bs and ask around.

[**Documentation Repo**](https://github.com/blizzhackers/documentation#diablo-2-botting-system-d2bs)

## Install dependencies - do this first!
- [Microsoft Visual C++ 2010 Redistributable Package (x86)](https://www.microsoft.com/en-us/download/details.aspx?id=26999)
- [Microsoft .NET Framework 4.0 (or higher)](https://dotnet.microsoft.com/download/dotnet-framework)

## Getting Started
- [download kolbot](https://github.com/blizzhackers/documentation/blob/master/d2bot/Download.md#download)
- [d2bot manager setup](https://github.com/blizzhackers/documentation/blob/master/d2bot/ManagerSetup.md/#manager-setup)
- [IDE-Setup](IDES.md/#code-editors-ides): How to set up your IDE for syntax highlighting
- [FAQ](https://github.com/blizzhackers/documentation/blob/master/kolbot/FAQ.md/#faq)

## Guides
- [manual playing](https://github.com/blizzhackers/documentation/blob/master/kolbot/ManualPlay.md/#manual-playing)
- [multi botting](https://github.com/blizzhackers/documentation/blob/master/kolbot/MultiBotting.md/#multi-botting)
- [kolbot-SoloPlay](https://github.com/blizzhackers/kolbot-SoloPlay)
- [character config](https://github.com/blizzhackers/documentation/blob/master/kolbot/CharacterConfig.md/#character-configuration)
- [TCP/IP Games](https://github.com/blizzhackers/documentation/blob/master/kolbot/TCP-IP%20games.md#tcpip-games)

## LimeDrop web based item manager and dropper

- Limedrop is available by default on the master(trunk) branch.
- [limedrop install and usage](https://github.com/blizzhackers/documentation/tree/master/limedrop#limedrop-guide)


![limedrop-general](https://github.com/blizzhackers/documentation/blob/master/limedrop/assets/limedrop-general.png)
Loading

0 comments on commit 476ed2c

Please sign in to comment.