mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:43:25 +00:00
feat: configure altstore source
This commit is contained in:
83
.github/workflows/release-mobile.yml
vendored
83
.github/workflows/release-mobile.yml
vendored
@@ -144,42 +144,61 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# app-repo:
|
app-repo:
|
||||||
# environment:
|
environment:
|
||||||
# name: github-pages
|
name: github-pages
|
||||||
# url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [build-ios, release-app]
|
needs: [build-ios, release-app]
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: Install Node.js
|
- name: Download build artifacts
|
||||||
# uses: actions/setup-node@v4
|
uses: actions/download-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# node-version: 21
|
merge-multiple: true
|
||||||
|
|
||||||
# - name: Create app repo
|
- name: Install Node.js
|
||||||
# run: |
|
uses: actions/setup-node@v4
|
||||||
# npm install -g altstore-github
|
with:
|
||||||
# mkdir -p pages
|
node-version: 21
|
||||||
# cd apps/expo
|
|
||||||
# npx altstore-github --config repo.config.json > app.json
|
|
||||||
# mv app.json ../../pages/app.json
|
|
||||||
|
|
||||||
# - name: Setup Pages
|
- name: Create app repo
|
||||||
# uses: actions/configure-pages@v4
|
run: |
|
||||||
|
npm install -g altstore-github
|
||||||
|
cd apps/expo
|
||||||
|
npx altstore-github --config repo.config.json > app.json
|
||||||
|
mv app.json ../../pages/app.json
|
||||||
|
|
||||||
# - name: Build with Jekyll
|
- name: Get new version and release date
|
||||||
# uses: actions/jekyll-build-pages@v1
|
id: vars
|
||||||
# with:
|
run: |
|
||||||
# source: ./pages
|
VERSION=$(jq -r '.version' package.json)
|
||||||
# destination: ./_site
|
DATE=$(date -Iseconds)
|
||||||
|
echo "::set-output name=version::$VERSION"
|
||||||
|
echo "::set-output name=date::$DATE"
|
||||||
|
|
||||||
# - name: Upload artifact
|
- name: Update app-repo.json
|
||||||
# uses: actions/upload-pages-artifact@v3
|
run: |
|
||||||
|
IPA_SIZE=$(stat -c%s "movie-web.ipa")
|
||||||
|
jq '.apps[0].versions[0].version = "${{ steps.vars.outputs.version }}" | .apps[0].versions[0].date = "${{ steps.vars.outputs.date }}" | .apps[0].versions[0].size = $IPA_SIZE' apps/expo/app-repo.json > temp.json
|
||||||
|
mkdir -p pages
|
||||||
|
mv temp.json pages/repo.json
|
||||||
|
|
||||||
# - name: Deploy to GitHub Pages
|
- name: Setup Pages
|
||||||
# id: deployment
|
uses: actions/configure-pages@v4
|
||||||
# uses: actions/deploy-pages@v2
|
|
||||||
|
- name: Build with Jekyll
|
||||||
|
uses: actions/jekyll-build-pages@v1
|
||||||
|
with:
|
||||||
|
source: ./pages
|
||||||
|
destination: ./_site
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v2
|
||||||
|
|
||||||
|
@@ -1,16 +1,25 @@
|
|||||||
{
|
{
|
||||||
|
"name": "movie-web native apps",
|
||||||
"apps": [
|
"apps": [
|
||||||
{
|
{
|
||||||
"name": "movie-web",
|
"name": "movie-web",
|
||||||
"bundleIdentifier": "dev.movieweb.app",
|
"bundleIdentifier": "dev.movieweb.app",
|
||||||
"filename": "movie-web.ipa",
|
"category": "entertainment",
|
||||||
"githubOwner": "movie-web",
|
|
||||||
"githubRepository": "native-app",
|
|
||||||
"developerName": "movie-web",
|
"developerName": "movie-web",
|
||||||
"subtitle": "A small app for watching movies and shows easily",
|
|
||||||
"localizedDescription": "This service works by displaying video files from third-party providers inside an intuitive and aesthetic user interface.",
|
|
||||||
"iconURL": "https://github.com/movie-web/native-app/blob/master/apps/expo/assets/images/icon.png?raw=true",
|
"iconURL": "https://github.com/movie-web/native-app/blob/master/apps/expo/assets/images/icon.png?raw=true",
|
||||||
"tintColor": "a87fd1"
|
"localizedDescription": "This service works by displaying video files from third-party providers inside an intuitive and aesthetic user interface.",
|
||||||
|
"subtitle": "A small app for watching movies and shows easily",
|
||||||
|
"tintColor": "a87fd1",
|
||||||
|
"versions": [
|
||||||
|
{
|
||||||
|
"version": "",
|
||||||
|
"date": "",
|
||||||
|
"downloadURL": "https://github.com/movie-web/native-app/releases/latest/download/movie-web.ipa",
|
||||||
|
"size": 0
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"appPermissions": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"news": []
|
||||||
}
|
}
|
Reference in New Issue
Block a user