Skip to content

Commit

Permalink
Tools: Build mobile app before release
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Oct 11, 2022
1 parent cac10c4 commit 6f6f427
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/prefer-default-export */

// This contains the CodeMirror instance, which needs to be built into a bundle
// using `npm run buildInjectedJs`. This bundle is then loaded from
// using `yarn run buildInjectedJs`. This bundle is then loaded from
// NoteEditor.tsx into the webview.
//
// In general, since this file is harder to debug due to the intermediate built
Expand Down
5 changes: 4 additions & 1 deletion packages/tools/release-android.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs-extra';
import { execCommandVerbose, execCommandWithPipes, githubRelease, githubOauthToken, fileExists, gitPullTry, completeReleaseWithChangelog } from './tool-utils';
import { execCommandVerbose, execCommandWithPipes, githubRelease, githubOauthToken, fileExists, gitPullTry, completeReleaseWithChangelog, execCommand2 } from './tool-utils';
const path = require('path');
const fetch = require('node-fetch');
const uriTemplate = require('uri-template');
Expand Down Expand Up @@ -151,6 +151,9 @@ async function main() {

const isPreRelease = argv.type === 'prerelease';

process.chdir(rnDir);
await execCommand2('yarn run build', { showStdout: false });

if (isPreRelease) console.info('Creating pre-release');
console.info('Updating version numbers in build.gradle...');

Expand Down

0 comments on commit 6f6f427

Please sign in to comment.