| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import { CapacitorConfig } from '@capacitor/cli'
- let config: CapacitorConfig
- const baseConfig: CapacitorConfig = {
- appId: 'com.hasiwl.shorts',
- appName: 'xx短剧',
- webDir: 'dist',
- bundledWebRuntime: true,
- backgroundColor: '#1C1C1C',
- android: {
- buildOptions: {
- keystorePath: '../zouma.jks',
- keystorePassword: 'zouma123',
- keystoreAlias: 'zouma',
- keystoreAliasPassword: 'zouma123',
- releaseType: 'APK'
- },
- minWebViewVersion: 60,
- },
- ios: {
- allowsLinkPreview: false
- },
- plugins: {
- SplashScreen: {
- launchShowDuration: 2000,
- androidScaleType: 'CENTER_CROP'
- },
- CodePush: {
- IOS_DEPLOY_KEY: 'eAdEIJJkMhuRwBKVpDXvbay6Ay0yEJAbzi0Ur',
- ANDROID_DEPLOY_KEY: 'ZrEsHcngd89oYtHZYQxLRUSMJ8trafzoNUVDN',
- SERVER_URL: 'https://codepush.appcenter.ms/'
- }
- },
- server: {
- errorPath: 'error.html',
- cleartext: true
- },
-
- }
- config = { ...baseConfig }
- console.log('NODE_ENV: ', process.env.NODE_ENV)
- switch (process.env.NODE_ENV) {
- case 'dev':
- config.server!.url = 'http://192.168.6.215:3000/h5/'
- break
- default:
- config.android!.flavor = 'prod'
- break
- }
- export default config
|