-
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
519 changed files
with
79,861 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Build WowUp Unlimited | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
wowup_branch: | ||
description: 'WowUp Branch' | ||
default: 'master' | ||
required: true | ||
wowupcf_branch: | ||
description: 'WowUp.CF Branch' | ||
default: 'main' | ||
required: true | ||
release_name: | ||
description: 'WowUp Unlimited Release' | ||
default: 'vX.X.X' | ||
required: true | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Initialize git config | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email [email protected] | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Checkout WowUp-Unlimited (orphaned) | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.WORKFLOW_PAT }} | ||
- name: Checkout WowUp-Unlimited | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
path: 'WowUp-Unlimited' | ||
- name: Checkout WowUp | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'WowUp/WowUp' | ||
ref: ${{ inputs.wowup_branch }} | ||
path: 'WowUp' | ||
fetch-depth: 0 | ||
- name: Create Release Branch | ||
run: git switch --orphan "${{ inputs.release_name }}-Src" | ||
- name: Patch WowUp Workflow | ||
run: | | ||
mkdir -p .github/workflows | ||
cp WowUp/.github/workflows/electron-all-build.yml .github/workflows | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/01-WorkflowCheckouts.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/02-CurseForgeMerge.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/03-DefaultShell.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/04-Trigger.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/05-Env.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/06-WorkspaceLocation.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/07-RunMerge.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/08-DisableCodeSigning.patch | ||
patch -p0 < ./WowUp-Unlimited/workflow-patches/09-WorkflowName.patch | ||
sed -i "s/WOWUP_BRANCH/${{ inputs.wowup_branch }}/g" .github/workflows/electron-all-build.yml | ||
sed -i "s/WOWUPCF_BRANCH/${{ inputs.wowupcf_branch }}/g" .github/workflows/electron-all-build.yml | ||
sed -i "s/RELEASE_NAME/${{ inputs.release_name }}/g" .github/workflows/electron-all-build.yml | ||
git add .github/workflows/electron-all-build.yml | ||
git commit -m "Patched WowUp Build Workflow: WowUp ${{ inputs.wowup_branch }} WowUp.CF ${{ inputs.wowupcf_branch }}" | ||
git push --force origin "${{ inputs.release_name }}-Src" |
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,24 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuo pipefail | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
GITHUB_WORKSPACE="${GITHUB_WORKSPACE:=${SCRIPT_DIR}/../}" | ||
|
||
CURR_REPO_DIR="${GITHUB_WORKSPACE}/WowUp" | ||
MERGE_REPO_DIR="${GITHUB_WORKSPACE}/WowUp.CF" | ||
|
||
while IFS= read -r f ; do | ||
d=$(dirname "${f}") | ||
if [ ! -d "${CURR_REPO_DIR}/${d}" ] ; then | ||
mkdir -p "${CURR_REPO_DIR}/${d}" | ||
fi | ||
echo "${f}" | ||
cp -af "${MERGE_REPO_DIR}/${f}" "${CURR_REPO_DIR}/${f}" | ||
done < "${SCRIPT_DIR}/unlimited-patches/orphans.lst" | ||
|
||
find "${SCRIPT_DIR}/unlimited-patches/" -name "*.patch" -type f -print | sort -n | | ||
while IFS= read -r f ; do | ||
echo "$(basename ${f})" | ||
patch -p0 -d "${CURR_REPO_DIR}" < "${f}" | ||
done |
Oops, something went wrong.