Skip to content

Commit

Permalink
Fixed (?) the build script for mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patineta committed Feb 28, 2014
1 parent 5a50d6c commit cff586e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2,665 deletions.
12 changes: 11 additions & 1 deletion dist/mac/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ xcopy /s/i "%CD%\..\..\js" "%packageDir%\js"
xcopy /s/i "%CD%\..\..\fonts" "%packageDir%\fonts"
xcopy /s/i "%CD%\..\..\images" "%packageDir%\images"
xcopy /s/i "%CD%\..\..\language" "%packageDir%\language"
xcopy /s/i "%CD%\..\..\node_modules" "%packageDir%\node_modules"
xcopy /s/i "%CD%\..\..\tmp" "%packageDir%\tmp"

:: Doesn't work
:: xcopy /s/i "%CD%\..\..\node_modules" "%packageDir%\node_modules"

:: Node Modules are a bit more fiddly (paths are longer than 255 chars, which makes xcopy fuck up)
:: This is a very shitty hack.
:: Zip them first to get around this restriction
del "node_modules.zip"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip -mx0 "node_modules.zip" "..\..\node_modules"
:: And then unzip them in the correct place
"%ProgramFiles%\7-Zip\7z.exe" x "node_modules.zip" -o"%packageDir%"

:: Put our custom icons in place
del "%CD%\Popcorn Time.app\Contents\Resources\nw.icns"
copy "%CD%\popcorntime.icns" "%CD%\Popcorn Time.app\Contents\Resources\nw.icns"
Expand Down
Loading

0 comments on commit cff586e

Please sign in to comment.