Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #600 from adobe/master
Browse files Browse the repository at this point in the history
Merge master into release for Brackets 1.9
  • Loading branch information
swmitra authored Mar 16, 2017
2 parents 0ad2696 + 8583247 commit 539e3e4
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 18 deletions.
4 changes: 1 addition & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ module.exports = function (grunt) {
},
"node-win": {
"dest" : "<%= downloads %>",
"src" : process.arch === "x64" ?
"http://nodejs.org/dist/v<%= node.version %>/win-x64/node.exe" :
"http://nodejs.org/dist/v<%= node.version %>/win-x86/node.exe"
"src" : "http://nodejs.org/dist/v<%= node.version %>/win-x86/node.exe"
}
},
"clean": {
Expand Down
2 changes: 1 addition & 1 deletion appshell/appshell_extensions_gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int GErrorToErrorCode(GError *gerror) {

int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
{
const char *remoteDebuggingFormat = "--no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --temp-profile --user-data-dir=%s --remote-debugging-port=9222";
const char *remoteDebuggingFormat = "--no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --temp-profile --user-data-dir=%s --disk-cache-size=250000000 --remote-debugging-port=9222";
gchar *remoteDebugging;
gchar *cmdline;
int error = ERR_BROWSER_NOT_INSTALLED;
Expand Down
1 change: 1 addition & 0 deletions appshell/appshell_extensions_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
@"--disable-default-apps",
debugPortCommandlineArguments,
debugProfilePath,
@"--disk-cache-size=250000000",
urlString,
nil];

Expand Down
2 changes: 1 addition & 1 deletion appshell/appshell_extensions_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
profilePath += L"\\live-dev-profile";
args += L" --user-data-dir=\"";
args += profilePath;
args += L"\" --no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --remote-debugging-port=9222 ";
args += L"\" --disk-cache-size=250000000 --no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --remote-debugging-port=9222 ";
} else {
args += L" ";
}
Expand Down
14 changes: 10 additions & 4 deletions appshell/appshell_helpers_gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "appshell/browser/resource.h"
#include "appshell/common/client_switches.h"
#include "appshell/version_linux.h"
#include "include/cef_base.h"
#include "include/cef_version.h"

Expand Down Expand Up @@ -114,13 +115,18 @@ CefString AppGetCachePath() {
}

CefString AppGetProductVersionString() {
// TODO
return CefString("");
std::string s = APP_NAME "/" APP_VERSION;
CefString ret;
ret.FromString(s);
return ret;
}

CefString AppGetChromiumVersionString() {
// TODO
return CefString("");
std::wostringstream versionStream(L"");
versionStream << L"Chrome/" << cef_version_info(2) << L"." << cef_version_info(3)
<< L"." << cef_version_info(4) << L"." << cef_version_info(5);

return CefString(versionStream.str());
}

char* AppInitWorkingDirectory() {
Expand Down
4 changes: 2 additions & 2 deletions appshell/mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.8.0</string>
<string>1.9.0</string>
<key>CFBundleShortVersionString</key>
<string>1.8.0</string>
<string>1.9.0</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand Down
4 changes: 2 additions & 2 deletions appshell/version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,8,0,0
FILEVERSION 1,9,0,0
/* PRODUCTVERSION 1,0,0,0 */
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
Expand All @@ -42,7 +42,7 @@ BEGIN
BEGIN
VALUE "CompanyName", "brackets.io\0"
VALUE "FileDescription", "\0"
VALUE "FileVersion", "Release 1.8.0\0"
VALUE "FileVersion", "Release 1.9.0\0"
VALUE "ProductName", APP_NAME "\0"
VALUE "ProductVersion", "\0"
VALUE "LegalCopyright", "(c) 2012 Adobe Systems, Inc.\0"
Expand Down
1 change: 1 addition & 0 deletions appshell/version_linux.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define APP_VERSION "1.9.0.0"
2 changes: 1 addition & 1 deletion installer/linux/build_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
chmod 755 debian/package-root/opt/brackets/brackets
chmod 755 debian/package-root/opt/brackets/Brackets
chmod 755 debian/package-root/opt/brackets/Brackets-node
chmod 755 debian/package-root/opt/brackets/www/LiveDevelopment/MultiBrowserImpl/launchers/node/node_modules/opn/xdg-open
chmod 755 debian/package-root/opt/brackets/www/node_modules/opn/xdg-open

# set permissions on subdirectories
find debian -type d -exec chmod 755 {} \;
Expand Down
2 changes: 1 addition & 1 deletion installer/linux/build_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
chmod 755 debian/package-root/opt/brackets/brackets
chmod 755 debian/package-root/opt/brackets/Brackets
chmod 755 debian/package-root/opt/brackets/Brackets-node
chmod 755 debian/package-root/opt/brackets/www/LiveDevelopment/MultiBrowserImpl/launchers/node/node_modules/opn/xdg-open
chmod 755 debian/package-root/opt/brackets/www/node_modules/opn/xdg-open
chmod 755 debian/package-root/DEBIAN/prerm
chmod 755 debian/package-root/DEBIAN/postrm
chmod 755 debian/package-root/DEBIAN/postinst
Expand Down
2 changes: 1 addition & 1 deletion installer/mac/buildInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# config
releaseName="Brackets"
version="1.8"
version="1.9"
dmgName="${releaseName} Release ${version}"
format="bzip2"
encryption="none"
Expand Down
9 changes: 9 additions & 0 deletions installer/win/Brackets.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
<RegistryValue Root="HKCR" Key="directory\shell\!(loc.ProductName)\command" Value="[INSTALLDIR]$(var.ExeName).exe &quot;%1&quot;"
Type="string" />

<RegistryValue Root="HKCR" Key="directory\background\shell\!(loc.ProductName)" Value="!(loc.ExplorerDirectoryOpenContextMenu)"
Type="string" />

<RegistryValue Root="HKCR" Key="directory\background\shell\!(loc.ProductName)" Name="Icon" Value="[INSTALLDIR]$(var.ExeName).exe"
Type="string" />

<RegistryValue Root="HKCR" Key="directory\background\shell\!(loc.ProductName)\command" Value="[INSTALLDIR]$(var.ExeName).exe &quot;%V&quot;"
Type="string" />

</Component>

<!-- Start Menu Shortcuts-->
Expand Down
2 changes: 1 addition & 1 deletion installer/win/brackets-win-install-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ default="build.mul">
<!-- See also: product name definitions in Brackets_<locale>.wxl -->
<property name="product.shortname" value="Brackets"/>
<property name="product.release.number.major" value="1"/>
<property name="product.release.number.minor" value="8"/>
<property name="product.release.number.minor" value="9"/>
<property name="product.version.number" value="${product.release.number.major}.${product.release.number.minor}"/>
<property name="product.version.name" value="Release ${product.version.number}"/>
<property name="product.fullname" value="Brackets ${product.version.name}"/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Brackets-Shell",
"version": "1.8.0-0",
"version": "1.9.0-0",
"homepage": "http://brackets.io",
"issues": {
"url": "http://github.com/adobe/brackets-shell/issues"
Expand Down
10 changes: 10 additions & 0 deletions tasks/set-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = function (grunt) {
buildInstallerScriptPath = "installer/mac/buildInstaller.sh",
versionRcPath = "appshell/version.rc",
infoPlistPath = "appshell/mac/Info.plist",
linuxVersionFile = "appshell/version_linux.h",
release = grunt.option("release") || "",
text,
newVersion;
Expand Down Expand Up @@ -113,5 +114,14 @@ module.exports = function (grunt) {
"$1" + newVersion.version + "$3"
);
grunt.file.write(infoPlistPath, text);

// 6. Open appshell/version_linux.h and change `APP_VERSION`
text = grunt.file.read(linuxVersionFile);
text = safeReplace(
text,
/APP_VERSION "(\d+\.\d+\.\d+\.\d+)"/,
'APP_VERSION "' + newVersion.major + "." + newVersion.minor + "." + newVersion.patch + "." + (newVersion.build.length ? newVersion.build : "0") + '"'
);
grunt.file.write(linuxVersionFile, text);
});
};

0 comments on commit 539e3e4

Please sign in to comment.