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
.dmg
file from thedist
directory. - Open the
.dmg
file and drag thedify
app to your Applications folder. - Launch the
dify
app from your Applications folder.
- Ensure that a web server is running at
http://localhost/apps
. - Open the
dify
app. - 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.js
file in the project directory. - Locate the line that sets the URL for the
win.loadURL
method: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 start
To build the app for macOS:
npm run build
The built .dmg
file will be located in the dist
directory.
This project is licensed under the MIT License.