mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add separate icons for non-stable builds (#8078)
This commit is contained in:
@@ -265,12 +265,24 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
||||
);
|
||||
|
||||
if (platform === 'win32') {
|
||||
if (quality !== 'stable') {
|
||||
// {{SQL CARBON EDIT}} use separate icons for non-stable
|
||||
gulp.src([
|
||||
'resources/win32/code_70x70-insiders.png',
|
||||
'resources/win32/code_150x150-insiders.png'
|
||||
]).pipe(rename(function (f) { f.basename = f.basename.replace('-insiders', ''); }))
|
||||
.pipe(gulp.dest('resources/win32'));
|
||||
}
|
||||
all = es.merge(all, gulp.src([
|
||||
// {{SQL CARBON EDIT}} remove unused icons
|
||||
'resources/win32/code_70x70.png',
|
||||
'resources/win32/code_150x150.png'
|
||||
], { base: '.' }));
|
||||
} else if (platform === 'linux') {
|
||||
// {{SQL CARBON EDIT}} use separate icons for non-stable
|
||||
if (quality !== 'stable') {
|
||||
gulp.src('resources/linux/code-insiders.png').pipe(rename('resources/linux/code.png'));
|
||||
}
|
||||
all = es.merge(all, gulp.src('resources/linux/code.png', { base: '.' }));
|
||||
} else if (platform === 'darwin') {
|
||||
const shortcut = gulp.src('resources/darwin/bin/code.sh')
|
||||
@@ -442,7 +454,7 @@ gulp.task('vscode-translations-pull', function () {
|
||||
|
||||
gulp.task('vscode-translations-import', function () {
|
||||
// {{SQL CARBON EDIT}} - Replace function body with our own
|
||||
return new Promise(function(resolve) {
|
||||
return new Promise(function (resolve) {
|
||||
[...i18n.defaultLanguages, ...i18n.extraLanguages].forEach(language => {
|
||||
let languageId = language.translationId ? language.translationId : language.id;
|
||||
gulp.src(`resources/xlf/${languageId}/**/*.xlf`)
|
||||
|
||||
Reference in New Issue
Block a user