mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Add New Contributors & Update Workflows
This commit is contained in:
parent
4904649e0c
commit
9f1fafade5
24
.github/workflows/latest.yml
vendored
24
.github/workflows/latest.yml
vendored
@ -12,7 +12,27 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Run Script
|
||||
- name: Set Permissions
|
||||
run: |
|
||||
cd /mnt/HDD/public
|
||||
./.latest.sh
|
||||
chmod -R 755 .EmulatorJS/
|
||||
- name: Update Stable
|
||||
run: |
|
||||
cd /mnt/HDD/public/.EmulatorJS/
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
git pull
|
||||
- name: Minify Files
|
||||
run: |
|
||||
cd /mnt/HDD/public/.EmulatorJS/data/minify/
|
||||
npm i
|
||||
npm run build
|
||||
- name: Zip Minified Files
|
||||
run: |
|
||||
cd /mnt/HDD/public/.EmulatorJS/data/
|
||||
zip emulator.min.zip emulator.min.js emulator.min.css
|
||||
- name: Clean Up Minify
|
||||
run: |
|
||||
cd /mnt/HDD/public/.EmulatorJS/data/
|
||||
rm "minify/package-lock.json"
|
||||
rm -rf "minify/node_modules/"
|
||||
68
.github/workflows/stable.yml
vendored
68
.github/workflows/stable.yml
vendored
@ -12,7 +12,71 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Run Script
|
||||
- name: Set Variables
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
wget "https://api.github.com/repos/EmulatorJS/EmulatorJS/releases/latest" -O .tmp.json
|
||||
version=$(jq -r '.tag_name' .tmp.json)
|
||||
download_url=$(jq -r '.assets[0].browser_download_url' .tmp.json)
|
||||
name=$(jq -r '.assets[0].name' .tmp.json)
|
||||
old_version=$(jq -r '.github' versions.json)
|
||||
v_version="$version"
|
||||
if [[ $version == v* ]]; then
|
||||
version="${version:1}"
|
||||
fi
|
||||
rm .tmp.json
|
||||
echo "VERSION=$version" >> $GITHUB_ENV
|
||||
echo "DOWNLOAD_URL=$download_url" >> $GITHUB_ENV
|
||||
echo "NAME=$name" >> $GITHUB_ENV
|
||||
echo "OLD_VERSION=$old_version" >> $GITHUB_ENV
|
||||
echo "V_VERSION=$v_version" >> $GITHUB_ENV
|
||||
- name: Set Stable Version
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
mkdir -p ".stable"
|
||||
jq --arg version "$VERSION" '.github = $VERSION' versions.json | sponge versions.json
|
||||
- name: Download Stable
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
wget "$DOWNLOAD_URL" -O ".stable/$NAME"
|
||||
- name: Extract Stable
|
||||
run: |
|
||||
cd /mnt/HDD/public/.stable/
|
||||
7z x "$NAME"
|
||||
- name: Move Versions
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
mv ".stable/$NAME" releases/
|
||||
mv "$OLD_VERSION" "$VERSION"
|
||||
mv stable "$OLD_VERSION"
|
||||
mv .stable stable
|
||||
- name: Set Permissions
|
||||
run: |
|
||||
cd /mnt/HDD/public
|
||||
./.stable.sh
|
||||
chmod -R 755 stable/
|
||||
- name: Update Stable Cores
|
||||
run: |
|
||||
rsync -az --delete /mnt/HDD/public/stable/data/cores/ /mnt/HDD/public/.EmulatorJS/data/cores/
|
||||
- name: Zip Stable
|
||||
run: |
|
||||
cd /mnt/HDD/public/stable/data/
|
||||
zip emulator.min.zip emulator.min.js emulator.min.css
|
||||
- name: Update Version
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
jq --arg old_version "$OLD_VERSION" '.versions += {($old_version): ($old_version + "/")}' versions.json | sponge versions.json
|
||||
- name: Clean Up
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
rm "$OLD_VERSION/data/emulator.min.zip"
|
||||
rm -rf "$OLD_VERSION/data/minify/node_modules/"
|
||||
rm "./releases/$OLD_VERSION.7z"
|
||||
- name: Compress Old Version
|
||||
run: |
|
||||
cd /mnt/HDD/public/
|
||||
7z a "./releases/$OLD_VERSION.7z" "./$OLD_VERSION/*"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -69,16 +69,18 @@
|
||||
<br>
|
||||
|
||||
<a href="https://github.com/n-at" target="_blank" title="n-at - Alexey Nurgaliev">![Avatar Alexey]</a>
|
||||
<a href="https://github.com/gantoine" target="_blank" title="gantoine - Georges-Antoine Assi">![Avatar gantoine]</a>
|
||||
<a href="https://github.com/incredibleIdea" target="_blank" title="incredibleIdea">![Avatar incredibleIdea]</a>
|
||||
<a href="https://github.com/angelmarfil" target="_blank" title="angelmarfil - Angel Marfil">![Avatar angelmarfil]</a>
|
||||
<a href="https://github.com/incredibleIdea" target="_blank" title="incredibleIdea">![Avatar incredibleIdea]</a>
|
||||
<a href="https://github.com/gantoine" target="_blank" title="gantoine - Georges-Antoine Assi">![Avatar gantoine]</a>
|
||||
<a href="https://github.com/Grey41" target="_blank" title="Grey41 - Grey Hope">![Avatar Grey]</a>
|
||||
<a href="https://github.com/E-Sh4rk" target="_blank" title="E-Sh4rk - Mickaël Laurent" width="95px"><img src="https://github.com/E-Sh4rk.png?size=95" width="95px"></a>
|
||||
<a href="https://github.com/E-Sh4rk" target="_blank" title="E-Sh4rk - Mickaël Laurent"><img src="https://github.com/E-Sh4rk.png?size=95" width="95px"></a>
|
||||
<a href="https://github.com/pastisme" target="_blank" title="pastisme">![Avatar pastisme]</a>
|
||||
<a href="https://github.com/t3chnob0y" target="_blank" title="t3chnob0y">![Avatar t3chnob0y]</a>
|
||||
<a href="https://github.com/iits-reza" target="_blank" title="iits-reza - Reza Mohammadi">![Avatar iits-reza]</a>
|
||||
<a href="https://github.com/ZhaoTonggang" target="_blank" title="ZhaoTonggang - 赵彤刚">![Avatar ZhaoTonggang]</a>
|
||||
<a href="https://github.com/iGoodie" target="_blank" title="iGoodie - Anılcan Metinyurt">![Avatar iGoodie]</a>
|
||||
<a href="https://github.com/ZhaoTonggang" target="_blank" title="ZhaoTonggang - 赵彤刚">![Avatar ZhaoTonggang]</a>
|
||||
<a href="https://github.com/iits-reza" target="_blank" title="iits-reza - Reza Mohammadi">![Avatar iits-reza]</a>
|
||||
<a href="https://github.com/t3chnob0y" target="_blank" title="t3chnob0y">![Avatar t3chnob0y]</a>
|
||||
<a href="https://github.com/kellenmace" target="_blank" title="kellenmace - Kellen Mace">![Avatar kellenmace]</a>
|
||||
<a href="https://github.com/pjft" target="_blank" title="pjft"><img src="https://github.com/pjft.png?size=95" width="95px"></a>
|
||||
<a href="https://github.com/IvanMazzoli" target="_blank" title="IvanMazzoli">![Avatar IvanMazzoli]</a>
|
||||
<a href="https://github.com/jonas0b1011001" target="_blank" title="jonas0b1011001">![Avatar jonas0b1011001]</a>
|
||||
<a href="https://github.com/TimKieu" target="_blank" title="TimKieu"><img src="https://github.com/TimKieu.png?size=95" width="95px"></a>
|
||||
@ -137,6 +139,7 @@
|
||||
|
||||
[Avatar iits-reza]: https://github.com/iits-reza.png?size=95
|
||||
|
||||
[Avatar kellenmace]: https://github.com/kellenmace.png?size=95
|
||||
|
||||
<!----------------------------------{ Ethan }----------------------------------->
|
||||
[Badge Ethan GitHub]: https://img.shields.io/badge/Ethan_O'_Brien-181717.svg?style=for-the-badge&logo=GitHub&logoColor=white
|
||||
|
||||
Loading…
Reference in New Issue
Block a user