Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: EAS Build

on:
push:
branches: [main]
workflow_dispatch:
inputs:
profile:
description: Build profile
required: true
default: preview
type: choice
options:
- development
- preview
- production
platform:
description: Platform
required: true
default: all
type: choice
options:
- all
- ios
- android

concurrency:
group: eas-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
name: EAS Build
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci

- name: Setup Expo
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Build (preview on push to main)
if: github.event_name == 'push'
run: eas build --profile preview --platform all --non-interactive

- name: Build (manual)
if: github.event_name == 'workflow_dispatch'
run: eas build --profile ${{ inputs.profile }} --platform ${{ inputs.platform }} --non-interactive
41 changes: 41 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module.exports = {
expo: {
name: 'Run Down',
slug: 'run-down',
version: '0.1.0',
orientation: 'landscape',
icon: './assets/icon.png',
userInterfaceStyle: 'dark',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#0a0a0f',
},
ios: {
bundleIdentifier: 'com.claude.rundown',
buildNumber: '1',
supportsTablet: true,
infoPlist: {
UIBackgroundModes: ['fetch', 'processing'],
BGTaskSchedulerPermittedIdentifiers: ['com.claude.rundown.refresh'],
},
},
android: {
package: 'com.claude.rundown',
versionCode: 1,
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#0a0a0f',
},
},
extra: {
eas: {
projectId: 'YOUR_EAS_PROJECT_ID',
},
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ['**/*'],
},
};
48 changes: 48 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"cli": {
"version": ">= 10.0.0",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
}
},
"preview": {
"distribution": "internal",
"ios": {
"resourceClass": "m-medium"
},
"android": {
"buildType": "apk"
}
},
"production": {
"autoIncrement": true,
"ios": {
"resourceClass": "m-medium",
"image": "latest"
},
"android": {
"buildType": "app-bundle",
"image": "latest"
}
}
},
"submit": {
"production": {
"ios": {
"appleId": "YOUR_APPLE_ID",
"ascAppId": "YOUR_APP_STORE_CONNECT_APP_ID",
"appleTeamId": "YOUR_TEAM_ID"
},
"android": {
"serviceAccountKeyPath": "./google-service-account.json",
"track": "internal"
}
}
}
}
6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"installCommand": "mkdir -p public",
"buildCommand": "cp demo.html public/index.html",
"outputDirectory": "public",
"regions": ["iad1"]
}