@@ -346,7 +346,7 @@ class Lazarus {
346
346
// Perform a repository update
347
347
await (0, exec_1.exec)("sudo apt update");
348
348
// linux arm64 和 linux x64 使用源码安装时
349
- if (this._Arch == 'arm64' || this. _SourceInstall) {
349
+ if (this._SourceInstall) {
350
350
await this.sourceInstallLinux(cacheRestored);
351
351
break;
352
352
}
@@ -579,13 +579,10 @@ class Lazarus {
579
579
// fpcName: fpc-3.2.2.%s-linux.tar
580
580
// aarch64 | x86_64
581
581
let tempArch = arch;
582
- if (tempArch == " x64" ) {
582
+ if (arch == ' x64' ) {
583
583
tempArch = "x86_64";
584
584
}
585
- else if (tempArch == "arm64") {
586
- tempArch = "aarch64";
587
- }
588
- fpcName = fpcName.replace("%s", tempArch);
585
+ fpcName = fpcName.replace("{arch}", tempArch);
589
586
return fpcName;
590
587
};
591
588
let source = version_1.versions['source'];
@@ -664,22 +661,22 @@ class Lazarus {
664
661
catch (error) {
665
662
throw error;
666
663
}
667
- core.info(`Run Install fpc & Lazarus`);
668
- try {
669
- core.info(`Run Install: apt-get install dependent`);
670
- await (0, exec_1. exec) ("sudo apt-get update -q -y");
671
- await (0, exec_1. exec) ("sudo apt-get install -q -y git");
672
- await (0, exec_1. exec) ("sudo apt-get install -q -y make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev libgtk-3-dev");
673
- // let fpcDirname = path.basename(fpcFilename, path.extname(fpcFilename));
674
- // core.info(`Run Install fpc: ${lazarusPath}/${fpcDirname}` );
675
- // await exec(`echo y | ./install.sh`, [], {cwd: ` ${lazarusPath}/${fpcDirname}`} );
676
- //
677
- // core.info(`Run Install lazarus: ${lazarusPath}`);
678
- // await exec(`make clean all`, [], {cwd: lazarusPath});
679
- }
680
- catch (error) {
681
- throw error;
682
- }
664
+ // core.info(`Run Install fpc & Lazarus`);
665
+ // try {
666
+ // core.info(`Run Install: apt-get install dependent`);
667
+ // await exec("sudo apt-get update -q -y");
668
+ // await exec("sudo apt-get install -q -y git");
669
+ // await exec("sudo apt-get install -q -y make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev libgtk-3-dev");
670
+ //
671
+ // // let fpcDirname = path.basename(fpcFilename, path.extname(fpcFilename) );
672
+ // // core.info(`Run Install fpc: ${lazarusPath}/${fpcDirname}`);
673
+ // // await exec(`echo y | ./install.sh`, [], {cwd: `${lazarusPath}/${fpcDirname}`});
674
+ // //
675
+ // // core.info(`Run Install lazarus: ${ lazarusPath}` );
676
+ // // await exec(`make clean all`, [], {cwd: lazarusPath});
677
+ // } catch (error) {
678
+ // throw ( error as Error) ;
679
+ // }
683
680
}
684
681
// 删除要求用户输入的部分
685
682
removeReadInput(path) {
@@ -1118,43 +1115,43 @@ exports.versions = {
1118
1115
"3.6": {
1119
1116
"fpcversion": "3.2.2",
1120
1117
"laz": "lazarus-3.6-0.tar.gz",
1121
- "fpc": "fpc-3.2.2.%s -linux.tar",
1118
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1122
1119
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1123
1120
},
1124
1121
"3.4": {
1125
1122
"fpcversion": "3.2.2",
1126
1123
"laz": "lazarus-3.4-0.tar.gz",
1127
- "fpc": "fpc-3.2.2.%s -linux.tar",
1124
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1128
1125
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1129
1126
},
1130
1127
"3.2": {
1131
1128
"fpcversion": "3.2.2",
1132
1129
"laz": "lazarus-3.2-0.tar.gz",
1133
- "fpc": "fpc-3.2.2.%s -linux.tar",
1130
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1134
1131
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1135
1132
},
1136
1133
"3.0": {
1137
1134
"fpcversion": "3.2.2",
1138
1135
"laz": "lazarus-3.0-0.tar.gz",
1139
- "fpc": "fpc-3.2.2.%s -linux.tar",
1136
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1140
1137
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1141
1138
},
1142
1139
"2.2.6": {
1143
1140
"fpcversion": "3.2.2",
1144
1141
"laz": "lazarus-2.2.6-0.tar.gz",
1145
- "fpc": "fpc-3.2.2.%s -linux.tar",
1142
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1146
1143
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1147
1144
},
1148
1145
"2.2.4": {
1149
1146
"fpcversion": "3.2.2",
1150
1147
"laz": "lazarus-2.2.4-0.tar.gz",
1151
- "fpc": "fpc-3.2.2.%s -linux.tar",
1148
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1152
1149
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1153
1150
},
1154
1151
"2.2.2": {
1155
1152
"fpcversion": "3.2.2",
1156
1153
"laz": "lazarus-2.2.2-0.tar.gz",
1157
- "fpc": "fpc-3.2.2.%s -linux.tar",
1154
+ "fpc": "fpc-3.2.2.{arch} -linux.tar",
1158
1155
"fpcsrc": "fpc-3.2.2.source.tar.gz"
1159
1156
}
1160
1157
},
0 commit comments