Last active
January 23, 2019 12:32
-
-
Save jan-san/69e10c256bd36fa801a202329692a379 to your computer and use it in GitHub Desktop.
Flatten Electron folder structure to avoid path lengths over 260 characters under Windows (based on https://github.com/nosqlclient/nosqlclient-electron/issues/1#issuecomment-292193231)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flatten folder structure of Electron app to stay within the 260 character path | |
# length limit under Windows. | |
# | |
# Based on | |
# https://github.com/nosqlclient/nosqlclient-electron/issues/1#issuecomment-292193231 | |
echo -------------------------------------------------------------------------------- | |
echo STARTING ELECTRON APP FOLDER CLEANUP | |
echo -------------------------------------------------------------------------------- | |
# change path/to to point to the location of your electron-packager output folder | |
cd path/to/resources/app | |
modclean -r -n default:safe,default:caution | |
cd app/programs/server | |
flatten-packages | |
cd npm | |
flatten-packages | |
cd node_modules/meteor | |
for module in $(find . -maxdepth 1 -mindepth 1 -type d); do | |
cd $module | |
flatten-deps | |
cd .. | |
done | |
cd .. | |
modclean -r -n default:safe,default:caution | |
echo -------------------------------------------------------------------------------- | |
echo ELECTRON APP FOLDER CLEANUP COMPLETED | |
echo -------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment