custom-expo-updates-server icon indicating copy to clipboard operation
custom-expo-updates-server copied to clipboard

Modified script for simplified runtime version management

Open Giasinit opened this issue 1 year ago • 0 comments

For those who don't want to consider the runtime of a project every time, you can extract it from app.json using the exportClientExpoConfig.js script and manipulate the JSON using the jq command, which you need to install on the device where the update is being performed. Simply replace the publish.sh with this script and adjust the folder names for the client and server (app_client and updates_server).

runtimeVersion=$(node ./scripts/exportClientExpoConfig.js | jq -r '.runtimeVersion')
directory="$runtimeVersion/$(date +%s)"

cd ../app_client
npx expo export --experimental-bundle
cd ../updates_server
mkdir -p updates/$directory/
rm -rf updates/$directory/
cp -r ../app_client/dist/ updates/$directory

node ./scripts/exportClientExpoConfig.js > updates/$directory/expoConfig.json

Giasinit avatar Dec 22 '23 09:12 Giasinit