mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
* added refreshlangpack command * added beginning update-localization yml file, also changed langpack location in RLE * added regex tester * moved xlf files into new folder structure * small change to update-localization * added yaml script for gulp refresh * added missing dash. * added better update-localization yml file * remove update-localization as its not necessary * added small changes to langpack-compile * remove upload sourcemaps and write version information * added more languages * added vsce packaging * added automatic langpack handling * added built locFunc * fixed refresh-langpack-extension * working langpack vsix generator made * added langpacks to files in copyArtifacts and product-build-linux * changed command to package-langpacks * removed unnecessary language flags. * invalid ADS extensions filter explained * Fix for regex * removed unnecessary fields to change, and removed langpack-compile * added doc comments. * moved xlf files back to old place. * WIP translation redirect * isolated vsix build task * fixed spaces in locFunc.ts
42 lines
1.6 KiB
JavaScript
42 lines
1.6 KiB
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const vfs = require("vinyl-fs");
|
|
const path = require("path");
|
|
const es = require("event-stream");
|
|
const fs = require("fs");
|
|
const files = [
|
|
'.build/langpacks/**/*.vsix',
|
|
'.build/extensions/**/*.vsix',
|
|
'.build/win32-x64/**/*.{exe,zip}',
|
|
'.build/linux/sha256hashes.txt',
|
|
'.build/linux/deb/amd64/deb/*.deb',
|
|
'.build/linux/rpm/x86_64/*.rpm',
|
|
'.build/linux/server/*',
|
|
'.build/linux/archive/*',
|
|
'.build/docker/*',
|
|
'.build/darwin/*',
|
|
'.build/version.json' // version information
|
|
];
|
|
async function main() {
|
|
return new Promise((resolve, reject) => {
|
|
const stream = vfs.src(files, { base: '.build', allowEmpty: true })
|
|
.pipe(es.through(file => {
|
|
const filePath = path.join(process.env.BUILD_ARTIFACTSTAGINGDIRECTORY,
|
|
//Preserve intermediate directories after .build folder
|
|
file.path.substr(path.resolve('.build').length + 1));
|
|
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
fs.renameSync(file.path, filePath);
|
|
}));
|
|
stream.on('end', () => resolve());
|
|
stream.on('error', e => reject(e));
|
|
});
|
|
}
|
|
main().catch(err => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|