From 42c799d217f715717aa87f465f54991982782adc Mon Sep 17 00:00:00 2001 From: jdescottes Date: Sat, 21 Jun 2014 22:39:37 +0200 Subject: [PATCH] added scripts for desktop packaging --- Gruntfile.js | 1 + misc/desktop/Info.plist | 101 ++++++++++++++++++ misc/desktop/logo.ico | Bin 0 -> 32038 bytes misc/desktop/nw.icns | Bin 0 -> 52819 bytes misc/{ => icons}/cursors-resources.jpg | Bin misc/{ => icons}/eraser.ai | 0 misc/{ => icons}/icons.png | Bin misc/{ => icons}/import-icon.svg | 0 misc/{ => icons}/mirror.ai | 0 misc/{ => icons}/rectangle.ai | 0 misc/{ => icons}/rectangle_selection.ai | 0 misc/{ => icons}/stroke.ai | 0 misc/{ => icons}/swap-arrow-small.png | Bin .../swap-arrow-square-small-grey.png | Bin misc/{ => icons}/swap-arrow-square-small.png | Bin misc/{ => icons}/swap-arrow-square.svg | 0 misc/{ => icons}/swap-arrow.svg | 0 misc/scripts/package-mac-application.cmd | 56 ++++++++++ misc/scripts/package-windows-executable.cmd | 36 +++++++ package.json | 6 +- src/logo.png | Bin 0 -> 414 bytes 21 files changed, 199 insertions(+), 1 deletion(-) create mode 100644 misc/desktop/Info.plist create mode 100644 misc/desktop/logo.ico create mode 100644 misc/desktop/nw.icns rename misc/{ => icons}/cursors-resources.jpg (100%) rename misc/{ => icons}/eraser.ai (100%) rename misc/{ => icons}/icons.png (100%) rename misc/{ => icons}/import-icon.svg (100%) rename misc/{ => icons}/mirror.ai (100%) rename misc/{ => icons}/rectangle.ai (100%) rename misc/{ => icons}/rectangle_selection.ai (100%) rename misc/{ => icons}/stroke.ai (100%) rename misc/{ => icons}/swap-arrow-small.png (100%) rename misc/{ => icons}/swap-arrow-square-small-grey.png (100%) rename misc/{ => icons}/swap-arrow-square-small.png (100%) rename misc/{ => icons}/swap-arrow-square.svg (100%) rename misc/{ => icons}/swap-arrow.svg (100%) create mode 100644 misc/scripts/package-mac-application.cmd create mode 100644 misc/scripts/package-windows-executable.cmd create mode 100644 src/logo.png diff --git a/Gruntfile.js b/Gruntfile.js index ea72fe3..6fab640 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -131,6 +131,7 @@ module.exports = function(grunt) { main: { files: [ {src: ['src/piskel-boot.js'], dest: 'dest/piskel-boot.js'}, + {src: ['src/logo.png'], dest: 'dest/logo.png'}, {src: ['src/js/lib/iframeLoader.js'], dest: 'dest/js/lib/iframeLoader.js'}, {expand: true, src: ['img/**'], cwd: 'src/', dest: 'dest/', filter: 'isFile'}, {expand: true, src: ['**/*.html'], cwd: 'src/', dest: 'dest/', filter: 'isFile'} diff --git a/misc/desktop/Info.plist b/misc/desktop/Info.plist new file mode 100644 index 0000000..2d9d2b9 --- /dev/null +++ b/misc/desktop/Info.plist @@ -0,0 +1,101 @@ + + + + + BuildMachineOSBuild + 12C3006 + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Piskel + CFBundleDocumentTypes + + + CFBundleTypeIconFile + nw.icns + CFBundleTypeName + node-webkit App + CFBundleTypeRole + Viewer + LSHandlerRank + Owner + LSItemContentTypes + + com.intel.nw.app + + + + CFBundleTypeName + Folder + CFBundleTypeOSTypes + + fold + + CFBundleTypeRole + Viewer + LSHandlerRank + None + + + CFBundleExecutable + node-webkit + CFBundleIconFile + nw.icns + CFBundleIdentifier + com.intel.nw + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Piskel + CFBundlePackageType + APPL + CFBundleShortVersionString + 0.1.0 + DTSDKBuild + 11E52 + DTSDKName + macosx10.7 + DTXcode + 0452 + DTXcodeBuild + 4G2008a + LSFileQuarantineEnabled + + LSMinimumSystemVersion + 10.6.0 + NSPrincipalClass + NSApplication + NSSupportsAutomaticGraphicsSwitching + + SCMRevision + 239963 + UTExportedTypeDeclarations + + + UTTypeConformsTo + + com.pkware.zip-archive + + UTTypeDescription + node-webkit App + UTTypeIconFile + nw.icns + UTTypeIdentifier + com.intel.nw.app + UTTypeReferenceURL + https://github.com/rogerwang/node-webkit/wiki/How-to-package-and-distribute-your-apps + UTTypeTagSpecification + + com.apple.ostype + node-webkit + public.filename-extension + + nw + + public.mime-type + application/x-node-webkit-app + + + + + diff --git a/misc/desktop/logo.ico b/misc/desktop/logo.ico new file mode 100644 index 0000000000000000000000000000000000000000..13cc8aeacc9658254f1053800f3918aad2a455b9 GIT binary patch literal 32038 zcmeI5KaU(m5XHymi?IX#1V-o*B%8<)0SOk8Nk~9Kgy4|WBDQ4+2mlEoM1YWxh(I9t z2%PMI1ik}&0}>Dt!7W|0^LpR>X4kXbd*?fR-O^muo2`0XRb4ZCJKJY>-Gy$yyL`Dz zB<~OH%*>OH%*-3IfV%c#%V%c#%V%bS@K4RH%K4RH%K4RHPaz0|&aXw<% zaXw<%Npe17*>OH%*>OH%*-3IfV%c#%V%c#%V%ar0RDho~hzB!%{vcL8`I&}Tc3E;h z;x>O@0oI#X^<=$?WtS!EO*|NKK4S54K4RHr$@z#M_xZnmbNpHR1oQv)z1MQt&wz4x ziZLA8qkvOU<2gkXTq@V|$sHBvJZ8O*U7V5;uJn+uD;1q{ z+tboLM#XoWu{h^R=&I$X-~9W~XFZ!fdq+&&!Oz3z&ycQ}KN}t6HCI|3oe^6tij{=UV@;=jZ#suUqS%C`0R? z{u!+IjO)=`tD`U2@Pqf4Iqbfn>ssFCp5r#o)9ydRcirds{mXmFdt+B!{Yn1gIPdRY z>-gqgKZ%%1IXy9pKv|xtJwQtFYk|#?se#&VZLvB zEoOB0_1f?MKJ4p|#6FKcAH9~OMsVzXzl<>?_5NJSL9ay)8ojUL4Y`HxzM(6Jt>TZI zB8MUV@Qo4Ai&b0de3l&82cIF&VfPJPG0gP~Uw59?KSS@F!~Rhp!hF?7k7J?mMn;x~4T}aO8VV>{nC&JVbZj@Yl%o zSG{MX{6cPuGv_kYz0Wb}F(QsQ`uc7Ww{mmeo@n@yDjq?nFWd&ccJ)@6uaz7N*K9y#@OS1z#zgC2hBrMY_Zb@$c$ zy<8V#oKw7`*V9_rV84v8t-*sq4_DQ38Q*-}wNCD<8uX!9oUsn-CD(PXA>{usq; zy}s$Zxmxdx_nWis!tOiLBmUut9#=29zR)!ib~ZM}*`MF4{@cYKImFP~SqQn_eT^eN z^^5EITH0ez|$8`Sorg(y1bGW|A{!yP#G2LG72TI>P_M^#1U5D7Gbt4`3(xH7? zUHY3=j?^0$9(8}5q4~~p?q_HjS}13!0=^faRA(NY?X9TMCwzr_dVJ3Yxz^#*d}&Y4 znw;Hd!nZ^I+G9pe$IPb`J6GtQON~C^Yx%GCbXL@Y^&~D`Z`x1z&d~MW`hWFreQ=$G zxt^t1Jd!ony!(hp((mUrx_CCp(tK%8UeBdQpYT;&^Ij+N5i_4sJmG8C|4#3LlX|xG zZ|{FQ^Z@&bxb%9b{e-Vw|LywUp$8`Yv_tQ=-~Z-+|6{!yZWU-1I6oEOUe;2~O69$} zX&-EjPCoA0Eyd&`F3p$rES&vU8K$;W(3G5Lr~^QArcYI1fT@|EUGd-65hD$pv>Dv&FnzqP29 znP{o#?-FVy=!*X)jDPz;z6q|)TYey{&0Bt;Yx(2^qKv>)N@&nyYxyQX>b|{Zpi3yZPtpr`mzg_=3^#J>6f@}L;eju#v zd-;KGr`+51-|m0xrwLXc*Gdqok8369TK}K){XYs`yY}ISQM>N)1Km#RPp*br1zH8p P_us$s-vem)d{y8-9L0H$ literal 0 HcmV?d00001 diff --git a/misc/desktop/nw.icns b/misc/desktop/nw.icns new file mode 100644 index 0000000000000000000000000000000000000000..65f813afc8855034ce75468c8413438113bb0786 GIT binary patch literal 52819 zcmeHw2Ut@}*KP`-2NDRqcj+J?ARtWvL8+pm(gc*ER0~Qc^j-~!G?A`S6cLpU0u~TO zK}D(*rT5U1yMyKEQIF?*_qq4{|Mw)4U1rv_cV^zTX6@P0!N%DG1Zp>N@Q~RK0zvS8 z_=TzIna!DL!eMH19>26#L`;21NkBkpa0fT%uEi-46iTdL01g-E<0d2HoSYW>_MUrc zR$WX?V@rNWo|}8e%;w;`cZ2JM!`eV^@4)7?7z2a&03p$UC_TN%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!gW^ zSuA>1*Ck0tUys^a2UAK4CybTNUZR1lisVQjmxe&s_AWb_&*zi8Ru0#`h{&}&GqLLu zhx$dve8#@iv1q?d5J)OkeW&EiN}Oi$nmP!?tkpz!4mqt}DS>S3#mPOwyn{HbGxL@5|3$sX-QWq2mR?ZrD-U zW_>6Fq~f?seO;h`N-1I>X=bQNA}7+DT=1TEIW4Yq%Zgqi)wE-t9Q_Dv>a}2F`4Ghr z+?ic^kcqQYaA{p7w+HM$bn8S_;LW0Clj_tvXbQ644JoBury$aV9ZJ?g=xJYOj^`Ei z={AosH2$Pe5+3;Mu2ZzQR9?s?EmfXxdFV`<8 z`aEgb%xJ6Zr+Yb;h)nkHo6py0G-YHu514Mo5v>**gRNC${rsVye8dFTi5(tCh=ocr;w{|`yoC~p7& literal 0 HcmV?d00001 diff --git a/misc/cursors-resources.jpg b/misc/icons/cursors-resources.jpg similarity index 100% rename from misc/cursors-resources.jpg rename to misc/icons/cursors-resources.jpg diff --git a/misc/eraser.ai b/misc/icons/eraser.ai similarity index 100% rename from misc/eraser.ai rename to misc/icons/eraser.ai diff --git a/misc/icons.png b/misc/icons/icons.png similarity index 100% rename from misc/icons.png rename to misc/icons/icons.png diff --git a/misc/import-icon.svg b/misc/icons/import-icon.svg similarity index 100% rename from misc/import-icon.svg rename to misc/icons/import-icon.svg diff --git a/misc/mirror.ai b/misc/icons/mirror.ai similarity index 100% rename from misc/mirror.ai rename to misc/icons/mirror.ai diff --git a/misc/rectangle.ai b/misc/icons/rectangle.ai similarity index 100% rename from misc/rectangle.ai rename to misc/icons/rectangle.ai diff --git a/misc/rectangle_selection.ai b/misc/icons/rectangle_selection.ai similarity index 100% rename from misc/rectangle_selection.ai rename to misc/icons/rectangle_selection.ai diff --git a/misc/stroke.ai b/misc/icons/stroke.ai similarity index 100% rename from misc/stroke.ai rename to misc/icons/stroke.ai diff --git a/misc/swap-arrow-small.png b/misc/icons/swap-arrow-small.png similarity index 100% rename from misc/swap-arrow-small.png rename to misc/icons/swap-arrow-small.png diff --git a/misc/swap-arrow-square-small-grey.png b/misc/icons/swap-arrow-square-small-grey.png similarity index 100% rename from misc/swap-arrow-square-small-grey.png rename to misc/icons/swap-arrow-square-small-grey.png diff --git a/misc/swap-arrow-square-small.png b/misc/icons/swap-arrow-square-small.png similarity index 100% rename from misc/swap-arrow-square-small.png rename to misc/icons/swap-arrow-square-small.png diff --git a/misc/swap-arrow-square.svg b/misc/icons/swap-arrow-square.svg similarity index 100% rename from misc/swap-arrow-square.svg rename to misc/icons/swap-arrow-square.svg diff --git a/misc/swap-arrow.svg b/misc/icons/swap-arrow.svg similarity index 100% rename from misc/swap-arrow.svg rename to misc/icons/swap-arrow.svg diff --git a/misc/scripts/package-mac-application.cmd b/misc/scripts/package-mac-application.cmd new file mode 100644 index 0000000..c76b82f --- /dev/null +++ b/misc/scripts/package-mac-application.cmd @@ -0,0 +1,56 @@ +setlocal +@echo off + +pushd ..\.. +set PISKEL_HOME=%cd% +popd + +set APP_BIN=%PISKEL_HOME%\dest\desktop\cache\mac\0.9.2 +set MISC_FOLDER=%PISKEL_HOME%\misc +set RELEASES_FOLDER=%PISKEL_HOME%\dest\desktop\releases +set DEST_FOLDER=%RELEASES_FOLDER%\mac + +echo "Building Piskel executable for Windows ..." + +echo "Creating release directory ..." +mkdir %DEST_FOLDER% +echo "DONE" + +echo "Creating application folder ..." +mkdir "%DEST_FOLDER%\piskel.app" +echo "DONE" + +echo "Unzip application ..." +mkdir "%APP_BIN%\node-webkit-unzipped" +7za x "%APP_BIN%\node-webkit-v0.9.2-osx-ia32.zip" -o"%APP_BIN%\node-webkit-unzipped" +echo "DONE" + +pause + +echo "Copy application ..." +xcopy "%APP_BIN%\node-webkit-unzipped\node-webkit.app" "%DEST_FOLDER%\piskel.app" /E +:: xcopy "%APP_BIN%\node-webkit.app" "%DEST_FOLDER%\piskel.app" /E +echo "DONE" + +echo "Copy Info.plist ..." +set CONTENTS_FOLDER=%DEST_FOLDER%\piskel.app\Contents +copy "%MISC_FOLDER%\desktop\Info.plist" "%CONTENTS_FOLDER%\" +echo "DONE" + +echo "Copy application ..." +set RESOURCES_FOLDER=%CONTENTS_FOLDER%\Resources +copy "%RELEASES_FOLDER%\piskel\piskel.nw" "%RESOURCES_FOLDER%\" +mv "%RESOURCES_FOLDER%\piskel.nw" "%RESOURCES_FOLDER%\app.nw" +echo "%RESOURCES_FOLDER%" +echo "DONE" + +echo "Copy icon ..." +rm "%RESOURCES_FOLDER%\nw.icns" +copy "%MISC_FOLDER%\desktop\nw.icns" "%RESOURCES_FOLDER%\" +echo "DONE" + +pause + +explorer "%DEST_FOLDER%" + +endlocal \ No newline at end of file diff --git a/misc/scripts/package-windows-executable.cmd b/misc/scripts/package-windows-executable.cmd new file mode 100644 index 0000000..1e6019d --- /dev/null +++ b/misc/scripts/package-windows-executable.cmd @@ -0,0 +1,36 @@ +setlocal +@echo off + +pushd ..\.. +set PISKEL_HOME=%cd% +popd + +echo "Building Piskel executable for Windows ..." + +echo "Creating release directory ..." +mkdir "%PISKEL_HOME%\dest\desktop\releases\windows" +echo "DONE" + +echo "Packaging executable ..." +copy /b "%PISKEL_HOME%\dest\desktop\cache\win\0.9.2\nw.exe"+"%PISKEL_HOME%\dest\desktop\releases\piskel\piskel.nw" "%PISKEL_HOME%\dest\desktop\releases\windows\piskel.exe" +echo "DONE" + +echo "Copying dependencies ..." +copy "%PISKEL_HOME%\dest\desktop\cache\win\0.9.2\*.dll" "%PISKEL_HOME%\dest\desktop\releases\windows\" +copy "%PISKEL_HOME%\dest\desktop\cache\win\0.9.2\nw.pak" "%PISKEL_HOME%\dest\desktop\releases\windows\" +echo "DONE" + + +echo "Updating Piskel icon" +ResHacker -addoverwrite "%PISKEL_HOME%\dest\desktop\releases\windows\piskel.exe", "%PISKEL_HOME%\dest\desktop\releases\windows\piskel-release.exe", "%PISKEL_HOME%\misc\desktop\logo.ico", ICONGROUP, IDR_MAINFRAME, 1033 +rm "%PISKEL_HOME%\dest\desktop\releases\windows\piskel.exe" +mv "%PISKEL_HOME%\dest\desktop\releases\windows\piskel-release.exe" "%PISKEL_HOME%\dest\desktop\releases\windows\piskel.exe" +echo "DONE" + + + +pause + +explorer "%PISKEL_HOME%\dest\desktop\releases\windows" + +endlocal \ No newline at end of file diff --git a/package.json b/package.json index 9676818..6e38320 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,10 @@ "nodewebkit": "0.8.4" }, "window": { - "toolbar": false + "title": "Piskel", + "icon": "dest/logo.png", + "toolbar": false, + "width": 1000, + "height": 500 } } diff --git a/src/logo.png b/src/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..8ee974652a9459fc1a55d1dce6aa76aefea652be GIT binary patch literal 414 zcmV;P0b%}$P)z@;L~Ol-VC4zCfM*a(5wR4{-~~K^mEaw0MQp^%$|j0tK*8Av!VW@Y z-!@h=xRaSb|9_IGke+*br}z#7ak5rPLmgkXYDVYGmw z2oXaVB7qvBc!JLgV2ZjJP}-NgJvRwV8i|UJm$50|wRctV#c9!$?>4%r_)G^-06KsX zFwGbk00^=LScC5sfCoT?V1lN#3Kd2RAcjzb?-lsD95x}=9|q$H;R@pl>-U5&t;jUV z<*k10c-^$+>+E#CdCit@aMbxS7(fB&09%VO0$>0jsI~}OfHi0XRd@hI2qvgN6)KDt zuz@OK=$jgpfwL&WJZk~>>C0WQ#IVFdx5Q))LhSx0000