Add linux app to ubuntu
When you run flutter build linux
, Flutter generates the build files inside the build/linux
directory of your project.
Here’s the typical directory structure:
reminder-app/
├── build/
│ ├── linux/
│ │ ├── x64/
│ │ │ ├── release/ <-- This contains the built binary and other necessary files
│ │ ├── debug/
│ │ ├── intermediate/
│ ├── ...
├── linux/ <-- Contains CMake-related build configuration
├── lib/
├── ...
1️⃣ Create the Directory in /opt/
Run the following command to create the directory for your app:
2️⃣ Copy the Files Again
Now, copy all the files from the bundle
folder to /opt/reminder-app/
:
3️⃣ Set the LD_LIBRARY_PATH
Create a launcher script to set the LD_LIBRARY_PATH
and run the application. Use this command to open the script for editing:
Add the following content to the script:
4️⃣ Make the Script Executable
Make sure the script is executable:
5️⃣ Run the Application
Now, try running your app again:
Comments
Post a Comment
What is your thought about this?