-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DS-Homebrew:master' into master
- Loading branch information
Showing
908 changed files
with
30,859 additions
and
7,725 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 |
---|---|---|
|
@@ -139,7 +139,7 @@ jobs: | |
# Only run this for non-PR jobs. | ||
publish_build: | ||
runs-on: ubuntu-latest | ||
name: Publish build to TWLBot | ||
name: Publish build to ??? | ||
if: ${{ success() && !startsWith(github.ref, 'refs/pull') }} | ||
needs: build | ||
env: | ||
|
@@ -156,42 +156,6 @@ jobs: | |
with: | ||
name: build | ||
path: build | ||
- name: Commit and push to TWLBot/Builds | ||
id: commit | ||
run: | | ||
CURRENT_DATE=$(date +"%Y%m%d-%H%M%S") | ||
echo "current_date=$CURRENT_DATE" >> $GITHUB_OUTPUT | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "TWLBot" | ||
git clone --depth 1 https://${{ secrets.TWLBOT_TOKEN }}@github.com/TWLBot/Builds.git | ||
cd Builds/ | ||
cp ${{ github.workspace }}/build/*.7z . | ||
mv ${{ github.workspace }}/build/apfix.pck extras | ||
mv ${{ github.workspace }}/build/widescreen.pck extras | ||
git stage . | ||
git commit -m "TWiLightMenu | $COMMIT_HASH" | ||
git tag v$CURRENT_DATE | ||
git push origin v$CURRENT_DATE master | ||
- name: Release to TWLBot/Builds | ||
run: | | ||
AUTH_HEADER="Authorization: token ${{ secrets.TWLBOT_TOKEN }}" | ||
CONTENT_TYPE="Content-Type: application/json" | ||
API_URL="https://api.github.com/repos/TWLBot/Builds/releases" | ||
RELEASE_INFO="{\"tag_name\": \"v${{ steps.commit.outputs.current_date }}\", \"name\": \"TWiLightMenu | $COMMIT_HASH\", \"body\": \"$AUTHOR_NAME - $COMMIT_SUBJECT\", \"prerelease\": true}" | ||
RESPONSE=$(curl -XPOST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" "$API_URL" -d "$RELEASE_INFO") | ||
ID=$(echo $RESPONSE | jq --raw-output '.id') | ||
for file in ${{ github.workspace }}/build/*.7z; do | ||
AUTH_HEADER="Authorization: token ${{ secrets.TWLBOT_TOKEN }}" | ||
CONTENT_LENGTH="Content-Length: $(stat -c%s $file)" | ||
CONTENT_TYPE="Content-Type: application/7z-x-compressed" | ||
UPLOAD_URL="https://uploads.github.com/repos/TWLBot/Builds/releases/$ID/assets?name=$(basename $file)" | ||
curl -XPOST -H "$AUTH_HEADER" -H "$CONTENT_LENGTH" -H "$CONTENT_TYPE" --upload-file "$file" "$UPLOAD_URL" | ||
done | ||
|
||
send_success_webhook: | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -57,16 +57,14 @@ jobs: | |
# Make artifacts directory | ||
mkdir -p ~/artifacts | ||
# Theme is currently unused | ||
rm -rf 7zfile/_nds/TWiLightMenu/akmenu | ||
# Debug 7z | ||
mv 7zfile/debug debug | ||
7z a TWiLightMenu-debug-release.7z debug | ||
mv TWiLightMenu-debug-release.7z ~/artifacts | ||
mkdir -p 7zfile/_nds/nds-bootstrap/ | ||
mkdir -p 7zfile/_nds/TWiLightMenu/3dsmenu/themes/ | ||
mkdir -p 7zfile/_nds/TWiLightMenu/akmenu/themes/ | ||
mkdir -p 7zfile/_nds/TWiLightMenu/boxart/ | ||
mkdir -p 7zfile/_nds/TWiLightMenu/dsimenu/themes/ | ||
mkdir -p 7zfile/_nds/TWiLightMenu/icons/ | ||
|
@@ -84,14 +82,9 @@ jobs: | |
curl -LO https://github.com/DS-Homebrew/nds-bootstrap-extras/raw/main/preLoadSettings/preLoadSettingsDSi.pck | ||
curl -LO https://github.com/DS-Homebrew/nds-bootstrap-extras/raw/main/preLoadSettings/preLoadSettings3DS.pck | ||
cd .. | ||
curl -L https://github.com/TWLBot/Builds/blob/master/nds-bootstrap.7z?raw=true -o nds-bootstrap.7z | ||
7z x nds-bootstrap.7z | ||
mv nds-bootstrap/release-bootstrap.ver 7zfile/_nds/ | ||
mv nds-bootstrap/nightly-bootstrap.ver 7zfile/_nds/ | ||
mv nds-bootstrap/nds-bootstrap-release.nds 7zfile/_nds/ | ||
mv nds-bootstrap/nds-bootstrap-nightly.nds 7zfile/_nds/ | ||
mv nds-bootstrap/nds-bootstrap-hb-release.nds 7zfile/DSi\&3DS\ -\ SD\ card\ users/_nds/ | ||
mv nds-bootstrap/nds-bootstrap-hb-nightly.nds 7zfile/DSi\&3DS\ -\ SD\ card\ users/_nds/ | ||
mv nds-bootstrap/preLoadSettingsDSi.pck 7zfile/_nds/nds-bootstrap/ | ||
mv nds-bootstrap/preLoadSettings3DS.pck 7zfile/_nds/nds-bootstrap/ | ||
|
@@ -212,20 +205,6 @@ jobs: | |
with: | ||
name: build | ||
path: build | ||
- name: Commit and push debug files to TWLBot/Builds | ||
id: commit | ||
run: | | ||
CURRENT_DATE=$(date +"%Y%m%d-%H%M%S") | ||
echo "current_date=$CURRENT_DATE" >> $GITHUB_OUTPUT | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "TWLBot" | ||
git clone --depth 1 https://${{ secrets.TWLBOT_TOKEN }}@github.com/TWLBot/Builds.git | ||
cd Builds/ | ||
cp ${{ github.workspace }}/build/TWiLightMenu-debug-release.7z . | ||
git stage . | ||
git commit -m "TWiLightMenu (Release) | $COMMIT_TAG" | ||
git push origin master | ||
- name: Upload to ${{ github.repository }} release | ||
run: | | ||
# Delete debug 7z | ||
|
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
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
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
File renamed without changes.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.