Skip to content

Commit

Permalink
Added missing templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jmymay committed Feb 5, 2016
1 parent 49d632f commit 7966c6c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function getReleasePaths(build) {
function getBasicReleaseInfo(build, paths) {
var opts = {
"dir": paths.releaseApp,
"name": packageJson.name,
"name": 'Zest',
"version": electron_version,
"asar": true,
"out": paths.release,
Expand Down Expand Up @@ -218,7 +218,7 @@ function deleteExtraResources(paths) {
// Tasks
//------------------------------------------------------------------------------

grunt.registerTask('release', ['cljsbuild-prod', 'prepare-release', 'release-linux']);
grunt.registerTask('release', ['cljsbuild-prod', 'prepare-release', 'release-mac']);

grunt.registerTask('cljsbuild-prod', function() {
grunt.log.writeln("\nCleaning and building ClojureScript production files...");
Expand Down Expand Up @@ -254,6 +254,8 @@ grunt.registerTask('prepare-release', function() {
exec('npm install --no-optional --production --silent');
popd();
cp('-f', paths.devPkg, paths.releaseApp);
cp('-f', 'node_modules/nodelucene.node', paths.releaseApp+'/node_modules');
cp('-r', 'node_modules/sqlite3', paths.releaseApp+'/node_modules');

deleteExtraResources(paths);
stampRelease(build, paths);
Expand Down Expand Up @@ -326,7 +328,7 @@ grunt.registerTask('release-mac', function() {
var dmgName = path.join(dirName, path.basename(dirName) + ".dmg");
grunt.config.set("appdmg", {
options: {
"title": "zest",
"title": "Zest",
"background": "scripts/dmg/TestBkg.png",
"icon-size": 80,
"contents": [
Expand Down
5 changes: 4 additions & 1 deletion scripts/build_app.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ copy sqlite_score\zest_score.sqlext builds\zest-v0.1.0-alpha2-pre\zest-win32-x64
copy sogrep-src\Release\*.exe builds\zest-v0.1.0-alpha2-pre\zest-win32-x64\resources
copy nodelucene\Release\searcher.exe builds\zest-v0.1.0-alpha2-pre\zest-win32-x64\resources

mkdir builds\zest-v0.1.0-alpha2-pre\zest-win32-x64\resources\app\templates
copy app\templates\* builds\zest-v0.1.0-alpha2-pre\zest-win32-x64\resources\app\templates

copy "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\redist\x64\Microsoft.VC110.CRT\msvcr110.dll" builds\zest-v0.1.0-alpha2-pre\zest-win32-x64
copy "LucenePlusPlus\build\src\core\Release\lucene++.dll" builds\zest-v0.1.0-alpha2-pre\zest-win32-x64
copy "LucenePlusPlus\build\src\contrib\Release\lucene++-contrib.dll" builds\zest-v0.1.0-alpha2-pre\zest-win32-x64
Expand All @@ -41,4 +44,4 @@ copy bzip2.v120.1.0.6.2\build\native\bin\x64\Release\bzip2.dll builds\zest-v0.1.

call choco install nsis.install -pre -y
set PATH=C:\Program Files (x86)\NSIS\Bin;%PATH%
call grunt release-win
call grunt release-win
Binary file added scripts/dmg/TestBkg.pxm
Binary file not shown.
Binary file added scripts/dmg/[email protected]
Binary file not shown.

0 comments on commit 7966c6c

Please sign in to comment.