forked from Sarjuuk/aowow
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from azerothcore/master
chore: align wowgaming/aowow with azerothcore/aowow
- Loading branch information
Showing
3 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: generate-aowow-database | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generate-aowow-db: | ||
permissions: write-all | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: "run scripts" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git clone https://github.com/azerothcore/acore-docker | ||
cd acore-docker | ||
docker compose up -d | ||
cd ../setup/ | ||
bash generate-db.sh | ||
cd .. | ||
release_name=$(date '+%Y-%m-%d_%H-%M-%S') | ||
gh release create $release_name | ||
gh release upload $release_name "aowow_db.sql.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# acore-docker credentials | ||
echo " | ||
<?php | ||
if (!defined('AOWOW_REVISION')) | ||
die('illegal access'); | ||
\$AoWoWconf['aowow'] = array ( | ||
'host' => '127.0.0.1:63306', | ||
'user' => 'root', | ||
'pass' => 'password', | ||
'db' => 'tmp_aowow', | ||
'prefix' => 'aowow_', | ||
); | ||
\$AoWoWconf['world'] = array ( | ||
'host' => '127.0.0.1:63306', | ||
'user' => 'root', | ||
'pass' => 'password', | ||
'db' => 'acore_world', | ||
'prefix' => '', | ||
); | ||
\$AoWoWconf['auth'] = array ( | ||
'host' => '127.0.0.1:63306', | ||
'user' => 'root', | ||
'pass' => 'password', | ||
'db' => 'acore_auth', | ||
'prefix' => '', | ||
); | ||
\$AoWoWconf['characters']['1'] = array ( | ||
'host' => '127.0.0.1:63306', | ||
'user' => 'root', | ||
'pass' => 'password', | ||
'db' => 'acore_characters', | ||
'prefix' => '', | ||
); | ||
?> | ||
" >> ../config/config.php | ||
|
||
mysql -u root -ppassword -h 127.0.0.1 -P 63306 -e "CREATE DATABASE tmp_aowow;" | ||
mysql -u root -ppassword -h 127.0.0.1 -P 63306 tmp_aowow < db_structure.sql | ||
mysql -u root -ppassword -h 127.0.0.1 -P 63306 acore_world < spell_learn_spell.sql | ||
|
||
cd .. | ||
|
||
mkdir -p setup/mpqdata/enus/DBFilesClient/ | ||
|
||
wget https://github.com/wowgaming/client-data/releases/download/v16/data.zip | ||
unzip data.zip "dbc/*" -d ./ | ||
mv dbc/* "setup/mpqdata/enus/DBFilesClient/" | ||
|
||
php aowow --sql | ||
|
||
mysqldump -u root -ppassword -h 127.0.0.1 -P 63306 tmp_aowow --ignore-table=tmp_aowow.aowow_config > aowow_update.sql | ||
mysqldump -u root -ppassword -h 127.0.0.1 -P 63306 acore_world > acore_world.sql | ||
zip aowow_db.sql.zip aowow_update.sql acore_world.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters