Skip to content

Commit

Permalink
Merge pull request #83 from Hedgefog/master
Browse files Browse the repository at this point in the history
Release 1.4.2
  • Loading branch information
Hedgefog authored Jul 31, 2022
2 parents 5a4197e + 96114d3 commit 3f402f6
Show file tree
Hide file tree
Showing 20 changed files with 6,318 additions and 1,222 deletions.
33 changes: 33 additions & 0 deletions .amxxpack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"compiler": {
"version": "1.9.0-git5294",
"dev": true,
"addons": ["cstrike"]
},
"include": [
"./.compiler/include",
"./.thirdparty/reapi/addons/amxmodx/scripting/include"
],
"thirdparty": {
"dependencies": [
{
"name": "reapi",
"url": "https://github.com/s1lentq/reapi/releases/download/5.21.0.252/reapi-bin-5.21.0.252.zip"
}
]
},
"input": {
"scripts": "./src/scripts",
"include": "./src/include",
"assets": "./assets"
},
"output": {
"plugins": "./dist/reapi/addons/amxmodx/plugins",
"scripts": "./dist/reapi/addons/amxmodx/scripting",
"include": "./dist/reapi/addons/amxmodx/scripting/include",
"assets": "./dist/reapi"
},
"rules": {
"flatCompilation": true
}
}
6 changes: 6 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These are supported funding model platforms

github: hedgefog
ko_fi: hedgefog
liberapay: hedgefog
issuehunt: hedgefog
28 changes: 6 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Zip
uses: montudor/[email protected]
- name: Download thirdparty
run: |
mkdir downloads
wget https://www.amxmodx.org/amxxdrop/1.9/amxmodx-1.9.0-git5271-base-linux.tar.gz -P ./downloads
wget https://www.amxmodx.org/amxxdrop/1.9/amxmodx-1.9.0-git5271-cstrike-linux.tar.gz -P ./downloads
wget https://github.com/s1lentq/reapi/releases/download/5.19.0.211/reapi_5.19.0.211-dev.zip -P ./downloads
- name: Setup Build Variables
id: buildvars
uses: actions/github-script@v3
Expand All @@ -42,13 +34,6 @@
} catch (err) {
core.setFailed(err.message);
}
- name: Setup compiler
run: |
mkdir ./compiler
tar --strip-components=3 -zxf ./downloads/amxmodx-1.9.0-git5271-base-linux.tar.gz -C ./compiler addons/amxmodx/scripting
tar --strip-components=3 -zxf ./downloads/amxmodx-1.9.0-git5271-cstrike-linux.tar.gz -C ./compiler addons/amxmodx/scripting
mkdir -p ./thirdparty/reapi
unzip ./downloads/reapi_5.19.0.211-dev.zip -d ./thirdparty/reapi
- name: Install Dependencies
run: npm install
- name: Build project
Expand All @@ -72,7 +57,7 @@
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/bundles/src/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-addons.zip
asset_path: ./dist/bundles/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-addons-src.zip
asset_name: zombiepanic-${{ steps.buildvars.outputs.tagversion }}-addons-src.zip
asset_content_type: application/zip
- name: Upload Release Build
Expand All @@ -82,7 +67,7 @@
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/bundles/full/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-addons.zip
asset_path: ./dist/bundles/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-addons-build.zip
asset_name: zombiepanic-${{ steps.buildvars.outputs.tagversion }}-addons-build.zip
asset_content_type: application/zip
- name: Upload Release Resources
Expand All @@ -92,7 +77,7 @@
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/bundles/full/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-resources.zip
asset_path: ./dist/bundles/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-resources.zip
asset_name: zombiepanic-${{ steps.buildvars.outputs.tagversion }}-resources.zip
asset_content_type: application/zip
- name: Upload Release SDK
Expand All @@ -102,12 +87,11 @@
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/bundles/sdk/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-sdk.zip
asset_path: ./dist/bundles/zombiepanic-${{ steps.buildvars.outputs.tagversion }}-sdk.zip
asset_name: zombiepanic-${{ steps.buildvars.outputs.tagversion }}-sdk.zip
asset_content_type: application/zip
- name: Cleanup
run: |
rm -rf ./compiler
rm -rf ./thirdparty
rm -rf ./.compiler
rm -rf ./.thirdparty
rm -rf ./dist
rm -rf ./downloads
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
*.max
*.log

*.user.*

node_modules/

compiler/
thirdparty/*/**

dist/
bundles/
.compiler/
.thirdparty/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ __Version:__ 1.4.1
- Install dependencies `npm i`

#### Customize builder
Use `config.user.js` file (Generated automatically on dependencies install)
Use `.amxxpack.json` configuration file

#### Build project

Expand Down
29 changes: 0 additions & 29 deletions builder/config.js

This file was deleted.

3 changes: 0 additions & 3 deletions builder/constants.js

This file was deleted.

64 changes: 0 additions & 64 deletions builder/factories/build-task.factory.js

This file was deleted.

30 changes: 0 additions & 30 deletions builder/generators/bundle-readme.generator.js

This file was deleted.

6 changes: 0 additions & 6 deletions builder/index.js

This file was deleted.

21 changes: 0 additions & 21 deletions builder/resolvers/thirdparty.resolver.js

This file was deleted.

24 changes: 0 additions & 24 deletions builder/resolvers/user-config.resolver.js

This file was deleted.

55 changes: 0 additions & 55 deletions builder/tasks/build.tasks.js

This file was deleted.

Loading

0 comments on commit 3f402f6

Please sign in to comment.