Artifact build support

This commit is contained in:
trickypr 2021-11-12 18:56:46 +11:00
parent 775cf7ec75
commit c0fb0edc45
3 changed files with 39 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import { writeFileSync, existsSync, mkdirSync, readFileSync } from 'fs'
import { readdir, stat, copyFile } from 'fs/promises'
import { join, isAbsolute, dirname } from 'path'
import { copyFile } from 'fs/promises'
import { join, dirname } from 'path'
import prompts from 'prompts'
@ -17,7 +17,7 @@ import {
// =============================================================================
// User interaction portion
export async function setupProject() {
export async function setupProject(): Promise<void> {
try {
if (existsSync(configPath)) {
log.warning('There is already a config file. This will overwrite it!')
@ -118,6 +118,9 @@ export async function setupProject() {
vendor,
appId,
version: { product, version, displayVersion: '1.0.0' },
buildOptions: {
artifactBuilds: ui === 'uc',
},
}
await copyRequired()