Skip to content

Commit 016a87e

Browse files
committed
fix: 移除非预期提交代码
1 parent 9933841 commit 016a87e

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

  • packages/vite-plugin-uni/src/cli

packages/vite-plugin-uni/src/cli/uvue.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ import { addConfigFile, cleanOptions, printStartupDuration } from './utils'
1818
import { initEasycom } from '../utils/easycom'
1919
import { stopProfiler } from './action'
2020

21-
import path from 'path'
22-
import fs from 'fs-extra'
23-
2421
export function initUVueEnv() {
2522
// 直接指定了
2623
if (process.env.UNI_APP_X === 'false') {
@@ -61,25 +58,6 @@ export async function runUVueAndroidDev(options: CliOptions & ServerOptions) {
6158
let isFirstEnd = true
6259
watcher.on('event', async (event) => {
6360
if (event.code === 'BUNDLE_START') {
64-
setTimeout(() => {
65-
const sourceDir = path.join(
66-
process.env.UNI_OUTPUT_DIR,
67-
'../',
68-
'cache/.app-android/src'
69-
)
70-
const targetDir =
71-
'/Users/wangzhenyu/work/git/uni-app-x-android/framework-demo/src/main/java/uni/UNIXXXXXXX'
72-
const targetPath = `${targetDir}/src`
73-
try {
74-
fs.emptyDirSync(targetDir)
75-
console.log('目录已成功清空!')
76-
fs.copySync(sourceDir, targetPath)
77-
console.log('文件夹拷贝完成!')
78-
} catch (err) {
79-
console.error(err)
80-
}
81-
}, 2000)
82-
8361
if (isFirstStart) {
8462
isFirstStart = false
8563
return

0 commit comments

Comments
 (0)