Dify is an Electron-based application that displays a web page from http://localhost/apps. The application is built to run on macOS and provides a simple interface to view the specified web page.
- Displays the web page from
http://localhost/apps - Includes a standard macOS title bar with window controls (minimize, maximize, close)
- Download the
.dmgfile from thedistdirectory. - Open the
.dmgfile and drag thedifyapp to your Applications folder. - Launch the
difyapp from your Applications folder.
- Ensure that a web server is running at
http://localhost/apps. - Open the
difyapp. - The app will display the web page from
http://localhost/apps.
To change the endpoint that the Dify app accesses, follow these steps:
- Open the
main.jsfile in the project directory. - Locate the line that sets the URL for the
win.loadURLmethod:win.loadURL('http://localhost/apps');
- Replace
'http://localhost/apps'with the desired endpoint URL. For example:win.loadURL('http://your-new-endpoint.com');
- Save the changes to
main.js. - Rebuild the application:
npm run build
- Node.js v22.13.1
- npm 10.9.2
- Clone the repository.
- Install dependencies:
npm install
To run the app in development mode:
npm startTo build the app for macOS:
npm run buildThe built .dmg file will be located in the dist directory.
This project is licensed under the MIT License.