Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.4k stars 1.03k forks source link

Support apple chips #1711

Closed cjahv closed 3 years ago

cjahv commented 3 years ago
❯ mono --version
Mono JIT compiler version 6.13.0.1104 (main/845fe83dd9c Wed Mar 17 04:04:31 UTC 2021)
Copyright (C) Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug
    Interpreter:   yes
    LLVM:          yes(610)
    Suspend:       hybrid
    GC:            sgen (concurrent by default)

❯ neofetch --off
OS: macOS 11.2.3 20D91 arm64
Host: Macmini9,1
Kernel: 20.3.0
Uptime: 39 mins
Packages: 1 (brew)
Shell: zsh 5.8
Resolution: 1920x1080
DE: Aqua
WM: Quartz Compositor
WM Theme: Blue (Light)
Terminal: iTerm2
Terminal Font: MesloLGS-NF-Regular 12
CPU: Apple M1
GPU: Apple M1
Memory: 1231MiB / 8192MiB

Exception in Apple chip

mono /Users/x/Documents/Projects/x/x/node_modules/electron-installer-windows/vendor/squirrel/Squirrel-Mono.exe --releasify /var/folders/1w/_dm0b7h1097539nv1xv2nx5h0000gn/T/electron-installer--1841-ubOA2r7zQznM/x8_3.9.8_undefined/nuget/x8.3.9.8.nupkg --releaseDir /var/folders/1w/_dm0b7h1097539nv1xv2nx5h0000gn/T/electron-installer--1841-ubOA2r7zQznM/x8_3.9.8_undefined/squirrel --setupIcon /Users/x/Documents/Projects/x/x/build/build.ico --loadingGif /Users/x/Documents/Projects/x/x/build/install.gif

System.AggregateException: One or more errors occurred. () ---> System.Exception
  at Squirrel.Utility.CreateZipFromDirectory (System.String zipFilePath, System.String inFolder) [0x00119] in <a5ee691170b94c488950c75951ce1ba3>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <1dad182cea284fae91f3e7d5611ddac4>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <1dad182cea284fae91f3e7d5611ddac4>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <1dad182cea284fae91f3e7d5611ddac4>:0 
  at Squirrel.ReleasePackage.CreateReleasePackage (System.String outputFile, System.String packagesRootDir, System.Func`2[T,TResult] releaseNotesProcessor, System.Action`1[T] contentsPostProcessHook) [0x001f7] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.Releasify (System.String package, System.String targetDir, System.String packagesDir, System.String bootstrapperExe, System.String backgroundGif, System.String signingOpts, System.String baseUrl, System.String setupIcon, System.Boolean generateMsi, System.String frameworkVersion, System.Boolean generateDeltas) [0x00214] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.executeCommandLine (System.String[] args) [0x004a2] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.main (System.String[] args) [0x00082] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.Main (System.String[] args) [0x00006] in <a5ee691170b94c488950c75951ce1ba3>:0 
---> (Inner Exception #0) System.Exception
  at Squirrel.Utility.CreateZipFromDirectory (System.String zipFilePath, System.String inFolder) [0x00119] in <a5ee691170b94c488950c75951ce1ba3>:0
cjahv commented 3 years ago

i can get around it for now

brew install wine-crossover20.0.2
rm -rf /opt/homebrew/bin/wine
ln -s /opt/homebrew/bin/wine32on64 /opt/homebrew/bin/wine
coopeeo commented 2 years ago

@cjahv does it still work I'm have the problem on macOS Monterey and I am on Intel Chip

cjahv commented 2 years ago

@cjahv does it still work I'm have the problem on macOS Monterey and I am on Intel Chip

brew install wine-crossover work?

coopeeo commented 2 years ago

yes

ToddAlvordMinerva commented 2 years ago

@cjahv It looks like wine-crossover can't be installed via brew anymore, is there a way you'd recommend now?

Edit: Nvm, found out I had to do this first brew tap gcenx/wine