mirror of
https://gitlab.com/vyla-entertainment/go.git
synced 2026-11-16 16:37:23 -05:00
v1.0.2
This commit is contained in:
15
release.js
15
release.js
@@ -137,11 +137,22 @@ async function main() {
|
||||
const version = `v${rawVersion}`;
|
||||
console.log(`Releasing ${version}...`);
|
||||
|
||||
const androidHome = process.env.ANDROID_HOME || `${process.env.LOCALAPPDATA}\\Android\\Sdk`;
|
||||
const ndkHome = process.env.NDK_HOME || `${androidHome}\\ndk\\29.0.13846066`;
|
||||
|
||||
const buildEnv = {
|
||||
...process.env,
|
||||
ANDROID_HOME: androidHome,
|
||||
NDK_HOME: ndkHome,
|
||||
GITLAB_TOKEN: TOKEN,
|
||||
VYLA_GITLAB_TOKEN: TOKEN,
|
||||
};
|
||||
|
||||
console.log('Building payload...');
|
||||
execSync('npm run build:payload', { stdio: 'inherit' });
|
||||
execSync('npm run build:payload', { stdio: 'inherit', env: buildEnv });
|
||||
|
||||
console.log('Building APK...');
|
||||
execSync('npm run build:apk', { stdio: 'inherit' });
|
||||
execSync('npm run build:apk', { stdio: 'inherit', env: buildEnv });
|
||||
|
||||
const apkSearchDirs = [
|
||||
path.join(__dirname, 'src-tauri', 'gen', 'android', 'app', 'build', 'outputs', 'apk', 'universal', 'release'),
|
||||
|
||||
Reference in New Issue
Block a user