当前位置:网站首页>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 .
边栏推荐
- 李宏毅《机器学习》丨7. Conclusion(总结)
- Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
- 第2章 还记得点、线、面吗(二)
- 董宇辉,新东方以及凤凰卫视
- New listing of operation light 3.0 - a sincere work of self subversion across the times!
- 合约量化系统开发(搭建讲解)丨合约量化系统开发(源码解析及现成案例)
- 还在用 SimpleDateFormat 做时间格式化?小心项目崩掉!
- Graduated
- 拼接String集合中的字符串_基于Stream
- 东方财富手机股票开户哪个券商更安全更方便?
猜你喜欢

字符串 & 堆 & 方法区

TiDB v6.0.0 (DMR) :缓存表初试丨TiDB Book Rush

获取系统当前日期

Day39 prototype chain and page Fireworks Effect 2021.10.13

一套十万级TPS的IM综合消息系统的架构实践与思考

Fancy features and cheap prices! What is the true strength of Changan's new SUV?

《运营之光3.0》全新上市——跨越时代,自我颠覆的诚意之作!

QML control type: tabbar

day33 js笔记 事件(下)2021.09.28

还在用 SimpleDateFormat 做时间格式化?小心项目崩掉!
随机推荐
Mysql使用max函数查询不到最大值
MytipartFile与File的相互转换
vsftpd服务的部署及优化
Setinterval, setTimeout and requestanimationframe
Word、PDF、TXT文件实现全文内容检索需要用什么方法?
Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
day32 js笔记 事件(上)2021.09.27
Redis6 一:Nosql引入、Redis可以解决什么问题?
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
论文阅读 (59):Keyword-Based Diverse Image Retrieval with Variational Multiple Instance Graph
For example, the visual appeal of the live broadcast of NBA Finals can be seen like this?
Thesis reading (59):keyword based diverse image retrieval with variable multiple instance graph
JS foundation 4
行业分析| 快对讲,楼宇对讲
Mysql安装配置以及解决重装Mysql时忘记root password问题
JS foundation 6
JS foundation 5
Graduation season, some suggestions for you who are new to the society
毕业季 新的开始
js中的class类模式及语法 2021.11.10