Oct 2018 - How to update to latest Fuselibs and Uno


#1

Tip: its a good practice to backup your older files :smiley:

  1. Download latest Fuselibs and Uno:
  1. Compile Uno
    Mac
    2.1. Get the prerequisites (Mono, Make, NodeJS and NuGet via mono) mono nuget.exe (Ref)
    2.2. Run make release from terminal/command line of the Uno folder
    Win
    2.1. Get the prerequisites (Mono, Bash via MSYS2, NodeJS and NuGet)
    2.1.1. Get all the 64bit versions!
    2.1.2. Bash - don’t forget to install and update the packages by running pacman -Syu inside MSYS2, close the app, then run pacman -Su to update the rest of the packages.
    2.1.3. Bash - Add path to your environment variables “C:\msys64\usr\bin” and “C:\msys64\usr\local\bin” via Control Panel > System > View advanced system settings > Environment Variables > System Variables > Path (Ref)
    2.1.4. Mono - Add path to your environment variables “C:\Program Files\Mono\bin”
    2.2. Get Visual Studio (Select “.Net desktop development” if installing via VS Community 2017)
    2.3. Open uno.sln in the uno-master folder
    2.4. In VS, make sure “Uno.CLI.Main” is selected in Startup Projects dropdown, then click Start
    2.5. Run the uno in the /bin folder uno --version
    2.6. Side thought: I don’t think we need bash and nodejs for Windows VS route, perhaps someone can confirm this?

  2. Setup latest Fuselibs with your project
    3.1. Create a file named .unoconfig in your project folder
    3.2. Enter the path to the fuselibs in the file on the first line like so:
    Packages.SourcePaths += /github/fuselibs/Source

  3. Setup latest Uno
    You will find your compiled Uno in the release folder
    4.1. Copy uno executables(uno & uno.exe) to fuselibs/Stuff folder
    4.2. Copy lib folder to fuselibs/Stuff/lib folder
    4.3. Mac: Copy and rename the bin folder to Uno folder in the Fuse application: Fuse.app/Contents/Uno
    Win: Copy contents of bin folder into Program Files (x86)/Fuse
    4.4. Copy fuselibs/Stuff/uno.packages and override Fuse.app/Contents/uno.packages

  4. Run uno doctor in project folder to make sure your libs are up-to-date.

  5. Run or export as per usual

P.s. if I’ve left anything out, just let me know.


Latest Fuselibs not loading images via url
Latest Fuselibs not loading images via url
#2

Hello! On Windows when running “make release” I get the following error:

process_begin: CreateProcess(NULL, bash -l scripts/pack.sh, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [release] Error 2

I have added uno and uno/bin to the system environment variables.


#3

Sounds like you’re missing bash. We require msys2 on windows. This should already be covered in the readme, I think


#4

Thanks! I installed msys2 following the instructions in https://www.msys2.org, but maybe it’s to do with environment variables not set correctly…


Oct 2018 - How to update Fuse Studio Preview (local preview) to use latest Fuselibs and Uno
#5

Yeah, it looks like bash needs to be in path


#6

Though this issue is unrelated to aeq´s post about “Fuse Preview not working with the latest Fuse-libs and Uno”. Can we get an insight on that?


#7

Hello! I installed Bash and it works ok in the command line, but the same error comes up. If I run “bash scripts/build.sh” instead of “make release”, I get this:

C:\Users\Matti Tihveräinen\Documents\GitHub\uno>bash scripts/build.sh
: No such file or directorycripts/common.sh
scripts/build.sh: line 5: $'\r': command not found
scripts/build.sh: line 12: $'\r': command not found
scripts/build.sh: line 14: syntax error near unexpected token `$'do\r''
'cripts/build.sh: line 14: `for arg in "$@"; do

#8

I have a feeling you didn’t install Bash, just MSYS2; check my updated 2.1. step.


#9

Thanks for the updated instructions! I’ve been running Fuse now 100% on a Mac without a problem, so I forgot about the issue. I’m sure it was with Bash missing.


#10

I was just thinking that for Windows users the terminal route of getting it working is a bit convoluted and since it is Windows, why not use VS lol


#11

Hey,

I’m having crashes with iPhoneX in Fuse 1.9 and tried to install to latest with this guide. However the uno doctor gives me a lot of errors related to ‘Fuse.Reactive.Javascript (reflector)’ thingy. Obviously will get these when trying to build my project.

Can anyone help me? Thanks.


#12

Ah I miserable failed the 4.3. Works now :slight_smile: