瀏覽代碼

releasecreator: added todos

mattias 1 年之前
父節點
當前提交
0639601391
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      tools/releasecreator/Pas2jsReleaseCreator.lpr

+ 7 - 3
tools/releasecreator/Pas2jsReleaseCreator.lpr

@@ -157,12 +157,13 @@ begin
   // build
   // build
   CleanSources;
   CleanSources;
 
 
-  TargetOS:=lowercase({$i %FPCTargetOS%});
-  TargetCPU:=lowercase({$i %FPCTargetCPU%});
+  TargetOS:=GetCompiledTargetOS;
+  TargetCPU:=GetCompiledTargetCPU;
   CreateBuildSourceDir(TargetOS,TargetCPU);
   CreateBuildSourceDir(TargetOS,TargetCPU);
-  BuildTools(TargetOS,TargetCPU);
+  //BuildTools(TargetOS,TargetCPU);
   CopySourceFolders;
   CopySourceFolders;
   CopyRTL;
   CopyRTL;
+  { #todo -oMattias : zip }
 
 
   // stop program loop
   // stop program loop
   Terminate;
   Terminate;
@@ -270,6 +271,9 @@ begin
     Pas2jsVersion:=IntToStr(Parts[vMajor])+'.'+IntToStr(Parts[vMinor])+'.'+IntToStr(Parts[vRelease]);
     Pas2jsVersion:=IntToStr(Parts[vMajor])+'.'+IntToStr(Parts[vMinor])+'.'+IntToStr(Parts[vRelease]);
     if Verbosity>=0 then
     if Verbosity>=0 then
       Log(etInfo,'Pas2js version is '+Pas2jsVersion);
       Log(etInfo,'Pas2js version is '+Pas2jsVersion);
+
+    { #todo -oMattias : Read version in rtl.js }
+
   finally
   finally
     sl.Free;
     sl.Free;
   end;
   end;