From 4f84cfc3cb80e62217fe9767dcf580083b1cb21b Mon Sep 17 00:00:00 2001 From: 2439905184 Date: Thu, 4 Aug 2022 21:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E4=B8=BA=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 并添加类型提示 --- gen.nim | 9 ++++----- init.nim | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gen.nim b/gen.nim index d85a113..4cfc6d4 100644 --- a/gen.nim +++ b/gen.nim @@ -9,11 +9,10 @@ import system/io #是否启用详细输出 var verbose_enabled = false var localDependencies:seq[string] -var remoteDependencies:seq[string] -var pluginDir = "/plugin" -var localDepDir = "/dependencies/local" -var remoteDepDir = "/dependencies/remote" -var outPutDir = "/output" +const pluginDir = "/plugin" +const localDepDir = "/dependencies/local" +const remoteDepDir = "/dependencies/remote" +const outPutDir = "/output" #插件的文件名字 xxx.aar proc get_plugin(path:string):string = diff --git a/init.nim b/init.nim index fb0478c..f772fa5 100644 --- a/init.nim +++ b/init.nim @@ -2,7 +2,7 @@ import os import system import std/json var cmd = commandLineParams() -var rootDir = cmd[0] +var rootDir:string = cmd[0] createDir(rootDir) createDir(rootDir & "/dependencies") createDir(rootDir & "/dependencies/local")