当前位置:网站首页>Packaging and publishing application of jetpack compose desktop version
Packaging and publishing application of jetpack compose desktop version
2022-06-28 11:25:00 【ScottePerk】
Of course, after writing an application, you want to publish it to others for use , Not only in IDE It uses .
Of course android You don't need this function , But the desktop version Compose need , Here we use Linux For example ,Windows It's the same thing .
The first thing to notice is that , Not enough to pack into jar The way , Will not recognize Compose The content of , Maybe there is no link Compose The reason for the library .
Packing can be used Gradle Features provided . Click on gradle Of task panel .
You can see a lot of packaging tools ,createDistributable,package,runDistributable Can generate executable programs .packageDeb Generate Debien package ,packageDmg Generate mac package ,packageMsi Generate Windows package . I'm using ArchLinux Distribution version , There are no directly supported types , But click runDistributable Can generate executable files .
It should be noted that , These commands only recognize Main.kt This file ,main Methods written in other files are not recognized .
Maybe I'm right gradle Not familiar with , Don't know how to specify a specific file . You can leave me a message if you know .
Will be in build An executable file named after the project name is generated under the directory , It should be noted that , If you want to copy this file to another place to run , Need to put lib Copy with directory ,lib The directory contains the dependent libraries .
In this way, you can use Compose Published applications on multiple general .
边栏推荐
- day39 原型链及页面烟花效果 2021.10.13
- 如临现场的视觉感染力,NBA决赛直播还能这样看?
- 100 important knowledge points that SQL must master: retrieving data
- This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors
- JS基础3
- Training notice | special training notice on epidemic prevention and security prevention for overseas Chinese funded enterprises, institutions and personnel in 2022
- 利用soapUI获取freemarker的ftl文件模板
- Thesis reading (59):keyword based diverse image retrieval with variable multiple instance graph
- soapui的菜鸟教程
- 网页提示此站点不安全解决方案
猜你喜欢
This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors

Recommended practice sharing of Zhilian recruitment based on Nebula graph

培训通知|2022年境外中资企业机构及人员疫情防控和安全防范专题培训通知

Day39 prototype chain and page Fireworks Effect 2021.10.13

2022中国信通院首届业务与应用安全发展论坛成功召开!

Industry analysis - quick intercom, building intercom
![[practice] 1364- implement a perfect waterfall flow component on the mobile terminal (with source code)](/img/e8/21d8d81a3d7b544687d6adc06ad4b1.png)
[practice] 1364- implement a perfect waterfall flow component on the mobile terminal (with source code)

day31 js笔记 DOM下 2021.09.26

远程登录sshd服务

Get current system date
随机推荐
时间戳和date转换「建议收藏」
SQL必需掌握的100个重要知识点:检索数据
元宇宙系统的发展与原理介绍
Blackmail virus of industrial control security
100 important knowledge points that SQL must master: retrieving data
获取系统当前日期
day32 js笔记 事件(上)2021.09.27
BigDecimal 类的 compareTo() 和 equals()方法
随机森林以及 AMR 训练出的诗词制造器
Xshell和Xftp使用教程
Making and using of dynamic library (shared library)
无法重新声明块范围变量
JS foundation 4
Adding a new user in MySQL 5.7
Lihongyi, machine learning 7 Conclusion
近况
Excel导入导出便捷工具类
New listing of operation light 3.0 - a sincere work of self subversion across the times!
[sword finger offer] 49 Ugly number
[Agora] get an Agora_ Example usage of refptr object