File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,6 +338,7 @@ function getRpmPackageArch(arch) {
338338
339339function prepareRpmPackage ( arch ) {
340340 var binaryDir = '../VSCode-linux-' + arch ;
341+ var rpmArch = getRpmPackageArch ( arch ) ;
341342 var destination = rpmBuildPath ;
342343 var packageRevision = getEpochTime ( ) ;
343344
@@ -359,8 +360,11 @@ function prepareRpmPackage(arch) {
359360
360361 var spec = gulp . src ( 'resources/linux/rpm/code.spec.template' , { base : '.' } )
361362 . pipe ( replace ( '@@NAME@@' , product . applicationName ) )
363+ . pipe ( replace ( '@@NAME_LONG@@' , product . nameLong ) )
362364 . pipe ( replace ( '@@VERSION@@' , packageJson . version ) )
363365 . pipe ( replace ( '@@RELEASE@@' , packageRevision ) )
366+ . pipe ( replace ( '@@QUALITY@@' , product . quality || '@@QUALITY@@' ) )
367+ . pipe ( replace ( '@@ARCHITECTURE@@' , rpmArch ) )
364368 . pipe ( rename ( 'SPECS/' + product . applicationName + '.spec' ) ) ;
365369
366370 var specIcon = gulp . src ( 'resources/linux/rpm/code.xpm' , { base : '.' } )
Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ if [ "@@NAME@@" = "code" ]; then
3030 rm -f /usr/local/bin/code
3131fi
3232
33+ # Register yum repository
34+ # TODO: #229: Enable once the yum repository is signed
35+ #if [ "@@NAME@@" != "code-oss" ]; then
36+ # if [ -d "/etc/yum.repos.d" ]; then
37+ # REPO_FILE=/etc/yum.repos.d/@@NAME@@.repo
38+ # rm -f $REPO_FILE
39+ # echo -e "[@@NAME@@]\nname=@@NAME_LONG@@\nbaseurl=https://vscode-update.azurewebsites.net/api/rpm/@@QUALITY@@/@@ARCHITECTURE@@/rpm" > $REPO_FILE
40+ # fi
41+ #fi
42+
3343%files
3444%defattr(-,root,root)
3545
You can’t perform that action at this time.
0 commit comments