GithubHelp home page GithubHelp logo

Comments (12)

lhaeger avatar lhaeger commented on August 17, 2024

Sorry, can't say if/how it works on Big Sur. I'm still on Catalina (and probably stay there until Apple comes back with a professional macOS version instead of the current iPad/Candy/Arcade design) where it works as described in the readme.
Did you check the logs for any hint of what exactly is not working?

from autoraise.

freebrowser1 avatar freebrowser1 commented on August 17, 2024

This is what it mentions:
The difference between Catalina and Big Sur is minimal under the hood. It is mainly, what you say, fancy eyecandy design. The same applies to Monterey (which I have now).

klaaspc:~/scratch/AutoRaise-launcher-v2.1.0 % g++ -O2 -Wall -fobjc-arc -o AutoRaise AutoRaise.mm -framework AppKit
AutoRaise.mm:58:22: warning: 'GetProcessForPID' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
OSStatus error = GetProcessForPID(pid, &process);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:930:1: note: 'GetProcessForPID' has been explicitly marked deprecated here
GetProcessForPID(
^
AutoRaise.mm:59:19: warning: 'SetFrontProcessWithOptions' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
if (!error) { SetFrontProcessWithOptions(&process, kSetFrontProcessFrontWindowOnly); }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:658:1: note: 'SetFrontProcessWithOptions' has been explicitly marked deprecated here
SetFrontProcessWithOptions(
^
2 warnings generated.

from autoraise.

lhaeger avatar lhaeger commented on August 17, 2024

You may want to try again with the update v2.5 code from upstream now integrated here as well.

from autoraise.

freebrowser1 avatar freebrowser1 commented on August 17, 2024

I tried it again with the original 2.1 zip and the updated Autoraise.mm.

g++ -O2 -Wall -fobjc-arc -o AutoRaise AutoRaise.mm -framework AppKit

Now no errors appeared. But no .app bundle is made yet.

from autoraise.

lhaeger avatar lhaeger commented on August 17, 2024

To build an app bundle, you need to open the xcode project in the launcher subfolder and build it in xcode. The gcc command only builds the CLI application from upstream, not the menu bar app.
I had hoped to explain that well enough in the readme: "Simply clone, open and build this project in XCode."

from autoraise.

freebrowser1 avatar freebrowser1 commented on August 17, 2024

There are no instructions. I find some files in Launcher, I guessed and tried the .swift file and that opened Xcode, but how can I make the bundle ?

from autoraise.

lhaeger avatar lhaeger commented on August 17, 2024

Yes, I assumed "open in Xcode" and "build in Xcode" would be sufficient and did not explain how to operate XCode, there are some good tutorials out there, already :-)

Off the top of my head:

  • Launch XCode
  • open the project via "CMD-O" or File>Open
  • use the "Build" menu item to build it
  • In the Project Explorer view on the left, you'll see the app bundle. Right-click on it and choose "View in Finder"

from autoraise.

freebrowser1 avatar freebrowser1 commented on August 17, 2024

I tried with xcode, but an app bundle is not made.
Can you publish an app bundle on Github ? Most developers do that, a ready to use app.

from autoraise.

lhaeger avatar lhaeger commented on August 17, 2024

I do not have a developer account with Apple, therefore cannot sign app bundles for use by others, sorry.

from autoraise.

freebrowser1 avatar freebrowser1 commented on August 17, 2024

Signing is not needed for macOS apps (unlike iOS apps), the user should just once notarize it, no developer account needed.

from autoraise.

lhaeger avatar lhaeger commented on August 17, 2024

Well, then try how far you get with https://github.com/lhaeger/AutoRaise/releases/tag/launcher-v2.5.0

from autoraise.

freebrowser1 avatar freebrowser1 commented on August 17, 2024

This bundle does not show any output at all, and also nothing in the menu bar, it appears to be a dummy.

from autoraise.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.