-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
34 deletions.
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
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 |
---|---|---|
@@ -1,35 +1,28 @@ | ||
name: "Parse nwserver" | ||
inputs: | ||
path: | ||
description: "Path" | ||
required: true | ||
default: ${{ github.workspace }}/nwserver | ||
type: string | ||
env: | ||
NWN_ROOT: ${{ inputs.path }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
sudo apt install unzip pev | ||
wget -O /usr/local/bin/semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver | ||
chmod +x /usr/local/bin/semver | ||
sudo apt install unzip | ||
wget -O nwn-nim.zip https://github.com/niv/neverwinter.nim/releases/download/1.7.1/neverwinter.linux.amd64.zip | ||
unzip -j nwn-nim.zip nwn_resman_pkg -d /usr/local/bin/ | ||
chmod +x /usr/local/bin/nwn_resman_pkg | ||
echo /usr/local/bin/ >> $GITHUB_PATH | ||
- name: Download nwnee files | ||
- name: Package nwnee files | ||
shell: bash | ||
env: | ||
APP_ID: 704450 | ||
WIN_BIN_DEPOT_ID: 704452 | ||
LINUX_BIN_DEPOT_ID: 704454 | ||
CONTENT_DEPOT_ID: 704451 | ||
NWN_ROOT: ./ | ||
CONTENT_DEPOT_ID: 704451 | ||
run: | | ||
mkdir -p nwserver/docker_data/lang/en/data nwserver/docker_data/data/bin/linux-amd64 nwserver/docker_data/data/bin/linux-arm64 nwserver/docker_data/data/data/mod/ | ||
cd DepotDownloader/DepotDownloader | ||
dotnet run -app 704450 -depot 704452 -username ${{ inputs.steam_username }} -password ${{ inputs.steam_password }} | ||
dotnet run -app 704450 -depot 704454 -username ${{ inputs.steam_username }} -password ${{ inputs.steam_password }} | ||
dotnet run -app 704450 -depot 704451 -username ${{ inputs.steam_username }} -password ${{ inputs.steam_password }} | ||
cd depots/704451/11253735/ | ||
nwn_resman_pkg --userdirectory . -d $GITHUB_WORKSPACE/nwserver/docker_data/data/data | ||
cd $GITHUB_WORKSPACE | ||
cp DepotDownloader/DepotDownloader/depots/704454/11253735/bin/linux-x86/nwserver-linux nwserver/docker_data/data/bin/linux-amd64/nwserver | ||
cp DepotDownloader/DepotDownloader/depots/704452/11253735/bin/win32/nwserver.exe nwserver.exe | ||
cp DepotDownloader/DepotDownloader/depots/704454/11253735/bin/linux-arm64/nwserver-linux nwserver/docker_data/data/bin/linux-arm64/nwserver | ||
cd depots/$CONTENT_DEPOT_ID/*/ | ||
nwn_resman_pkg --userdirectory . -d ${{ inputs.GITHUB_WORKSPACE }}/data/data |
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
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