using System;
using WixSharp;

namespace cbriscola.avalonia_setup
{
    internal class Program
    {
        static void Main()
        {
            var project = new Project("CBriscola.Avalonia",
                              new Dir(@"[ProgramFiles64Folder]\\CBriscola.Avalonia",
                                  new DirFiles(@"*.*"),
                                  new Dir("runtimes",
                                      new Dir("win-x64",
                                            new Dir("native",
                                                new File("runtimes\\win-x64\\native\\av_libglesv2.dll"),
                                                new File("runtimes\\win-x64\\native\\libHarfBuzzSharp.dll"),
                                                new File("runtimes\\win-x64\\native\\libSkiaSharp.dll")
                                            )
                                        ),
                                    new Dir("win",
                                        new Dir("lib",
                                            new Dir("netcoreapp3.0",
                                                new File("runtimes\\win\\lib\\netcoreapp3.0\\Microsoft.Win32.SystemEvents.dll"),
                                                new File("runtimes\\win\\lib\\netcoreapp3.0\\System.Drawing.Common.dll")
                                            )
                                        )
                                    )
                                 )
                        ),
                        new Dir(@"%ProgramMenu%",
                         new ExeFileShortcut("CBriscola.Avalonia", "[ProgramFiles64Folder]\\CBriscola.Avalonia\\CBriscola.Avalonia.exe", "") { WorkingDirectory = "[INSTALLDIR]" }
                      )//,
                        //new Property("ALLUSERS","0")
            );

            project.GUID = new Guid("68B61DE0-07A0-499E-B3FB-F15873641EB4");
            project.Version = new Version("0.9.0.1");
            project.Platform = Platform.x64;
            project.SourceBaseDir = "D:\\source\\CBriscola.Avalonia\\CBriscola.Avalonia\\bin\\Release\\net8.0-windows10.0.22621.0";
            project.LicenceFile = "LICENSE.rtf";
            project.OutDir = "D:\\";
            project.ControlPanelInfo.Manufacturer = "Giulio Sorrentino";
            project.ControlPanelInfo.Name = "CBriscola.Avalonia";
            project.ControlPanelInfo.HelpLink = "https://github.com/numerunix/CBriscola.Avalonia/issues";
            project.Description = "Simulatore del gioco della briscola in avalonia a due giocatori senza multiplayer";
            //            project.Properties.SetValue("ALLUSERS", 0);
            project.BuildMsi();
        }
    }
}