Skip to content

Commit

Permalink
chore: add a bump script
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Feb 25, 2024
1 parent 6f5cd04 commit c892d5d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/retroarch
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
{
"name": "retro-assembly-vendors",
"version": "1.17.0-20240125144704",
"version": "1.17.0-20240225181605",
"description": "Upstream files for Retro Assembly",
"keywords": [],
"author": "arianrhodsandlot",
"keywords": [
"retroarch",
"emulator",
"emscripten"
],
"author": {
"name": "arianrhodsandlot",
"email": "[email protected]"
},
"license": "GPL-3.0",
"files": [
"dist"
]
],
"scripts": {
"bump": "./scripts/bump.sh",
"dev": "python3 -m http.server"
}
}
5 changes: 2 additions & 3 deletions scripts/build-cores.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ function dist_core() {
echo "Compile bitcode files finished!"
}

# cores=(FBNeo stella2014-libretro prosystem-libretro)
cores=(a5200 fbneo prosystem stella2014)
clean_up_retroarch_dir
activate_emscripten '3.1.46'
activate_emscripten '3.1.50'
cores=(a5200 fbneo prosystem stella2014)
for core in "${cores[@]}"; do
build_core_bitcode "$core"
dist_core $core
Expand Down
16 changes: 16 additions & 0 deletions scripts/bump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e

wd=$(pwd)
retroarch_dir=$wd/modules/retroarch

cd $retroarch_dir
retroarch_version=$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')

current_time=$(date "+%Y%m%d%H%M%S")

cd $wd
version="$retroarch_version-$current_time"
echo $version
sed -i '' "s/\"version\": \".*\"/\"version\": \"$version\"/" package.json

0 comments on commit c892d5d

Please sign in to comment.