Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
35b1e3c4
Commit
35b1e3c4
authored
Jan 26, 2017
by
maxkadushkin
Committed by
GitHub
Jan 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #54 from ONLYOFFICE/feature/auto-version-numbering
Added automatic version numbering
parents
387b5d80
3ad3aefa
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
18 deletions
+33
-18
apps/api/documents/api.js
apps/api/documents/api.js
+1
-1
apps/common/main/lib/view/About.js
apps/common/main/lib/view/About.js
+1
-1
apps/documenteditor/mobile/app/template/Settings.template
apps/documenteditor/mobile/app/template/Settings.template
+1
-1
apps/presentationeditor/mobile/app/template/Settings.template
.../presentationeditor/mobile/app/template/Settings.template
+1
-1
apps/spreadsheeteditor/mobile/app/template/Settings.template
apps/spreadsheeteditor/mobile/app/template/Settings.template
+1
-1
build/Gruntfile.js
build/Gruntfile.js
+25
-10
build/documenteditor.json
build/documenteditor.json
+1
-1
build/presentationeditor.json
build/presentationeditor.json
+1
-1
build/spreadsheeteditor.json
build/spreadsheeteditor.json
+1
-1
No files found.
apps/api/documents/api.js
View file @
35b1e3c4
...
...
@@ -571,7 +571,7 @@
};
DocsAPI
.
DocEditor
.
version
=
function
()
{
return
'
4.3.0
'
;
return
'
{{PRODUCT_VERSION}}
'
;
};
MessageDispatcher
=
function
(
fn
,
scope
)
{
...
...
apps/common/main/lib/view/About.js
View file @
35b1e3c4
...
...
@@ -52,7 +52,7 @@ define([
initialize
:
function
(
options
)
{
Common
.
UI
.
BaseView
.
prototype
.
initialize
.
call
(
this
,
arguments
);
this
.
txtVersionNum
=
'
4.3
'
;
this
.
txtVersionNum
=
'
{{PRODUCT_VERSION}}
'
;
this
.
txtAscMail
=
'
support@onlyoffice.com
'
;
this
.
txtAscTelNum
=
'
+371 660-16425
'
;
this
.
txtAscUrl
=
'
www.onlyoffice.com
'
;
...
...
apps/documenteditor/mobile/app/template/Settings.template
View file @
35b1e3c4
...
...
@@ -421,7 +421,7 @@
</div>
<div class="content-block">
<h3>DOCUMENT EDITOR</h3>
<h3><%= scope.textVersion %>
4.3
</h3>
<h3><%= scope.textVersion %>
{{PRODUCT_VERSION}}
</h3>
</div>
<div class="content-block">
<h3 class="vendor">Ascensio System SIA</h3>
...
...
apps/presentationeditor/mobile/app/template/Settings.template
View file @
35b1e3c4
...
...
@@ -223,7 +223,7 @@
</div>
<div class="content-block">
<h3>PRESENTATION EDITOR</h3>
<h3><%= scope.textVersion %>
4.3
</h3>
<h3><%= scope.textVersion %>
{{PRODUCT_VERSION}}
</h3>
</div>
<div class="content-block">
<h3 class="vendor">Ascensio System SIA</h3>
...
...
apps/spreadsheeteditor/mobile/app/template/Settings.template
View file @
35b1e3c4
...
...
@@ -273,7 +273,7 @@
</div>
<div class="content-block">
<h3>SPREADSHEET EDITOR</h3>
<h3><%= scope.textVersion %>
4.3
</h3>
<h3><%= scope.textVersion %>
{{PRODUCT_VERSION}}
</h3>
</div>
<div class="content-block">
<h3 class="vendor">Ascensio System SIA</h3>
...
...
build/Gruntfile.js
View file @
35b1e3c4
...
...
@@ -8,7 +8,7 @@ module.exports = function(grunt) {
'
*
\n
'
+
'
* <%= pkg.homepage %>
\n
'
+
'
*
\n
'
+
'
* Version:
'
+
process
.
env
[
'
PRODUCT_VERSION
'
]
+
'
(build:
'
+
process
.
env
[
'
BUILD_NUMBER
'
]
+
'
)
\n
'
+
'
* Version:
<%= pkg.version %> (build:<%= pkg.build %>
)
\n
'
+
'
*/
\n
'
;
...
...
@@ -117,7 +117,7 @@ module.exports = function(grunt) {
doRegisterTask
(
'
requirejs
'
,
function
(
defaultConfig
,
packageFile
)
{
return
{
uglify
:
{
pkg
:
grunt
.
file
.
readJSON
(
defaultConfig
)
,
pkg
:
packageFile
,
options
:
{
banner
:
'
/** vim: et:ts=4:sw=4:sts=4
\n
'
+
...
...
@@ -136,7 +136,7 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
main-app-init
'
,
function
()
{
grunt
.
initConfig
({
pkg
:
grunt
.
file
.
readJSON
(
defaultConfig
)
,
pkg
:
packageFile
,
clean
:
{
options
:
{
...
...
@@ -169,13 +169,13 @@ module.exports = function(grunt) {
replace
:
{
writeVersion
:
{
src
:
[
'
<%= pkg.api.copy.script.dest %>
'
+
'
/documents/api.js
'
],
src
:
[
'
<%= pkg.api.copy.script.dest %>
'
+
'
/documents/api.js
'
,
'
<%= pkg.main.js.requirejs.options.out %>
'
],
overwrite
:
true
,
replacements
:
[{
from
:
/
(\#{2}
BN
\#)
/
,
from
:
/
\{\{
PRODUCT_VERSION
\}\}
/
,
to
:
function
(
matchedWord
,
index
,
fullText
,
regexMatches
)
{
// return content.replace(/(\#{2}BN\#)/, "." + (process.env['BUILD_NUMBER'] || packageFile.build));
return
"
.
"
+
(
process
.
env
[
'
BUILD_NUMBER
'
]
||
packageFile
.
build
);
return
packageFile
.
version
;
}
}]
}
...
...
@@ -219,7 +219,7 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
mobile-app-init
'
,
function
()
{
grunt
.
initConfig
({
pkg
:
grunt
.
file
.
readJSON
(
defaultConfig
)
,
pkg
:
packageFile
,
clean
:
{
options
:
{
...
...
@@ -281,13 +281,26 @@ module.exports = function(grunt) {
'
images-app
'
:
{
files
:
packageFile
[
'
mobile
'
][
'
copy
'
][
'
images-app
'
]
}
},
replace
:
{
writeVersion
:
{
src
:
[
'
<%= pkg.mobile.js.requirejs.options.out %>
'
],
overwrite
:
true
,
replacements
:
[{
from
:
/
\{\{
PRODUCT_VERSION
\}\}
/
,
to
:
function
(
matchedWord
,
index
,
fullText
,
regexMatches
)
{
return
packageFile
.
version
;
}
}]
}
}
});
});
grunt
.
registerTask
(
'
embed-app-init
'
,
function
()
{
grunt
.
initConfig
({
pkg
:
grunt
.
file
.
readJSON
(
defaultConfig
)
,
pkg
:
packageFile
,
clean
:
{
options
:
{
...
...
@@ -334,6 +347,8 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
increment-build
'
,
function
()
{
var
pkg
=
grunt
.
file
.
readJSON
(
defaultConfig
);
pkg
.
build
=
parseInt
(
pkg
.
build
)
+
1
;
packageFile
.
version
=
(
process
.
env
[
'
PRODUCT_VERSION
'
]
||
pkg
.
version
);
packageFile
.
build
=
(
process
.
env
[
'
BUILD_NUMBER
'
]
||
pkg
.
build
);
grunt
.
file
.
write
(
defaultConfig
,
JSON
.
stringify
(
pkg
,
null
,
4
));
});
...
...
@@ -353,7 +368,7 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
deploy-requirejs
'
,
[
'
requirejs-init
'
,
'
clean
'
,
'
uglify
'
]);
grunt
.
registerTask
(
'
deploy-app-main
'
,
[
'
main-app-init
'
,
'
clean
'
,
'
imagemin
'
,
'
less
'
,
'
requirejs
'
,
'
concat
'
,
'
copy
'
,
'
replace:writeVersion
'
]);
grunt
.
registerTask
(
'
deploy-app-mobile
'
,
[
'
mobile-app-init
'
,
'
clean:deploy
'
,
'
cssmin:styles
'
,
'
copy:template-backup
'
,
'
htmlmin
'
,
'
requirejs
'
,
'
concat
'
,
'
copy:template-restore
'
,
'
clean:template-backup
'
,
'
copy:localization
'
,
'
copy:index-page
'
,
'
copy:images-app
'
]);
grunt
.
registerTask
(
'
deploy-app-mobile
'
,
[
'
mobile-app-init
'
,
'
clean:deploy
'
,
'
cssmin:styles
'
,
'
copy:template-backup
'
,
'
htmlmin
'
,
'
requirejs
'
,
'
concat
'
,
'
copy:template-restore
'
,
'
clean:template-backup
'
,
'
copy:localization
'
,
'
copy:index-page
'
,
'
copy:images-app
'
,
'
replace:writeVersion
'
]);
grunt
.
registerTask
(
'
deploy-app-embed
'
,
[
'
embed-app-init
'
,
'
clean:prebuild
'
,
'
uglify
'
,
'
less
'
,
'
copy
'
,
'
clean:postbuild
'
]);
...
...
build/documenteditor.json
View file @
35b1e3c4
{
"name"
:
"documenteditor"
,
"version"
:
"4.
7
.0"
,
"version"
:
"4.
3
.0"
,
"build"
:
1112
,
"homepage"
:
"http://www.onlyoffice.com"
,
"private"
:
true
,
...
...
build/presentationeditor.json
View file @
35b1e3c4
{
"name"
:
"presentationeditor"
,
"version"
:
"4.
7
.0"
,
"version"
:
"4.
3
.0"
,
"build"
:
774
,
"homepage"
:
"http://www.onlyoffice.com"
,
"sdk"
:
{
...
...
build/spreadsheeteditor.json
View file @
35b1e3c4
{
"name"
:
"spreadsheeteditor"
,
"version"
:
"4.
7
.0"
,
"version"
:
"4.
3
.0"
,
"build"
:
879
,
"homepage"
:
"http://www.onlyoffice.com"
,
"private"
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment