The file sync is based on unison.
-
Download current release of unison
-
Extract zip-file and add the
.\bin
dir to your PATH -
Setup SSH between your Windows machine -> Mac (preferably public-key)
-
Set the
{WIN_FOLDER_NAME}
,{MACBOOK_SSH}
and{MAC_ABSOLUTE_PATH}
variables insync_with_mac.ps1
-
Run the
sync_with_mac.ps1
script
You may get an error when using -repeat watch
: try renaming unison-fsmonitor.exe -> unison-fsmonitor-2.51.exe
(Or current unison-fsmonitor version -> add -debug all
to sync_with_mac.ps1
)
Requires Homebrew for installing required programs.
-
Install unison with
brew install unison
-
Install unison-fsmonitor
brew install autozimu/homebrew-formulas/unison-fsmonitor
Execute in root flutter dir (pubspec.yaml dir -> {MAC_ABSOLUTE_PATH}
)
flutter run --pid-file /tmp/flutter_zune.pid
-
Install entr
brew install entr
-
Run the following command
while true
do
find lib/ -name '*.dart' | \
entr -d -p kill -USR1 $(cat /tmp/flutter_zune.pid)
done