mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
build vscode armhf
This commit is contained in:
parent
23e743d14e
commit
47d8a25606
|
@ -16,6 +16,9 @@ resources:
|
||||||
- container: vscode-arm64
|
- container: vscode-arm64
|
||||||
image: vscodehub.azurecr.io/vscode-linux-build-agent:buster-arm64
|
image: vscodehub.azurecr.io/vscode-linux-build-agent:buster-arm64
|
||||||
endpoint: VSCodeHub
|
endpoint: VSCodeHub
|
||||||
|
- container: vscode-armhf
|
||||||
|
image: vscodehub.azurecr.io/vscode-linux-build-agent:buster-armhf
|
||||||
|
endpoint: VSCodeHub
|
||||||
- container: snapcraft
|
- container: snapcraft
|
||||||
image: snapcore/snapcraft:stable
|
image: snapcore/snapcraft:stable
|
||||||
|
|
||||||
|
@ -84,10 +87,11 @@ stages:
|
||||||
|
|
||||||
- job: LinuxArmhf
|
- job: LinuxArmhf
|
||||||
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ARMHF'], 'true'))
|
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ARMHF'], 'true'))
|
||||||
|
container: vscode-armhf
|
||||||
variables:
|
variables:
|
||||||
VSCODE_ARCH: armhf
|
VSCODE_ARCH: armhf
|
||||||
steps:
|
steps:
|
||||||
- template: linux/product-build-linux-multiarch.yml
|
- template: linux/product-build-linux.yml
|
||||||
|
|
||||||
- job: LinuxArm64
|
- job: LinuxArm64
|
||||||
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ARM64'], 'true'))
|
condition: and(succeeded(), eq(variables['VSCODE_BUILD_LINUX_ARM64'], 'true'))
|
||||||
|
|
|
@ -263,7 +263,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
||||||
let result = all
|
let result = all
|
||||||
.pipe(util.skipDirectories())
|
.pipe(util.skipDirectories())
|
||||||
.pipe(util.fixWin32DirectoryPermissions())
|
.pipe(util.fixWin32DirectoryPermissions())
|
||||||
.pipe(electron(_.extend({}, config, { platform, arch, ffmpegChromium: true })))
|
.pipe(electron(_.extend({}, config, { platform, arch: arch === 'armhf' ? 'arm' : arch, ffmpegChromium: true })))
|
||||||
.pipe(filter(['**', '!LICENSE', '!LICENSES.chromium.html', '!version'], { dot: true }));
|
.pipe(filter(['**', '!LICENSE', '!LICENSES.chromium.html', '!version'], { dot: true }));
|
||||||
|
|
||||||
if (platform === 'linux') {
|
if (platform === 'linux') {
|
||||||
|
@ -324,7 +324,7 @@ const BUILD_TARGETS = [
|
||||||
{ platform: 'darwin', arch: null, opts: { stats: true } },
|
{ platform: 'darwin', arch: null, opts: { stats: true } },
|
||||||
{ platform: 'linux', arch: 'ia32' },
|
{ platform: 'linux', arch: 'ia32' },
|
||||||
{ platform: 'linux', arch: 'x64' },
|
{ platform: 'linux', arch: 'x64' },
|
||||||
{ platform: 'linux', arch: 'arm' },
|
{ platform: 'linux', arch: 'armhf' },
|
||||||
{ platform: 'linux', arch: 'arm64' },
|
{ platform: 'linux', arch: 'arm64' },
|
||||||
];
|
];
|
||||||
BUILD_TARGETS.forEach(buildTarget => {
|
BUILD_TARGETS.forEach(buildTarget => {
|
||||||
|
|
|
@ -23,7 +23,7 @@ const commit = util.getVersion(root);
|
||||||
const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
|
const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
|
||||||
|
|
||||||
function getDebPackageArch(arch) {
|
function getDebPackageArch(arch) {
|
||||||
return { x64: 'amd64', arm: 'armhf', arm64: 'arm64' }[arch];
|
return { x64: 'amd64', armhf: 'armhf', arm64: 'arm64' }[arch];
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepareDebPackage(arch) {
|
function prepareDebPackage(arch) {
|
||||||
|
@ -115,7 +115,7 @@ function getRpmBuildPath(rpmArch) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRpmPackageArch(arch) {
|
function getRpmPackageArch(arch) {
|
||||||
return { x64: 'x86_64', arm: 'armhf', arm64: 'arm64' }[arch];
|
return { x64: 'x86_64', armhf: 'armhf', arm64: 'arm64' }[arch];
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepareRpmPackage(arch) {
|
function prepareRpmPackage(arch) {
|
||||||
|
@ -246,7 +246,7 @@ function buildSnapPackage(arch) {
|
||||||
|
|
||||||
const BUILD_TARGETS = [
|
const BUILD_TARGETS = [
|
||||||
{ arch: 'x64' },
|
{ arch: 'x64' },
|
||||||
{ arch: 'arm' },
|
{ arch: 'armhf' },
|
||||||
{ arch: 'arm64' },
|
{ arch: 'arm64' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ function getElectron(arch) {
|
||||||
return () => {
|
return () => {
|
||||||
const electronOpts = _.extend({}, exports.config, {
|
const electronOpts = _.extend({}, exports.config, {
|
||||||
platform: process.platform,
|
platform: process.platform,
|
||||||
arch,
|
arch: arch === 'armhf' ? 'arm' : arch,
|
||||||
ffmpegChromium: true,
|
ffmpegChromium: true,
|
||||||
keepDefaultApp: true
|
keepDefaultApp: true
|
||||||
});
|
});
|
||||||
|
|
|
@ -88,7 +88,7 @@ function getElectron(arch: string): () => NodeJS.ReadWriteStream {
|
||||||
return () => {
|
return () => {
|
||||||
const electronOpts = _.extend({}, config, {
|
const electronOpts = _.extend({}, config, {
|
||||||
platform: process.platform,
|
platform: process.platform,
|
||||||
arch,
|
arch: arch === 'armhf' ? 'arm' : arch,
|
||||||
ffmpegChromium: true,
|
ffmpegChromium: true,
|
||||||
keepDefaultApp: true
|
keepDefaultApp: true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue