当前位置:网站首页>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 .
边栏推荐
- Get current system date
- MytipartFile与File的相互转换
- Makefile简介
- 阿里三面:LEFT JOIN关联表中用ON还是WHERE跟条件有什么区别
- 100 important knowledge points that SQL must master: retrieving data
- [sciter]: use of sciter FS module scanning file API and its details
- 合约量化系统开发(搭建讲解)丨合约量化系统开发(源码解析及现成案例)
- JS foundation 1-js introduction and operator
- Lihongyi, machine learning 7 Conclusion
- [QT] connect syntax reference implementation
猜你喜欢
一套十万级TPS的IM综合消息系统的架构实践与思考
JS基础8
AGCO AI frontier promotion (6.28)
QML control type: tabbar
Day39 prototype chain and page Fireworks Effect 2021.10.13
Remote connection of raspberry pie in VNC viewer mode without display
Everyone can participate in open source! Here comes the most important developer activity in dragon lizard community
获取系统当前日期
day34 js笔记 正则表达式 2021.09.29
Get current system date
随机推荐
功能真花哨,价格真便宜!长安全新SUV真实力到底怎样?
Graduation season, some suggestions for you who are new to the society
Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
day32 js笔记 事件(上)2021.09.27
mysql-.sql文件钓鱼上线
Training notice | special training notice on epidemic prevention and security prevention for overseas Chinese funded enterprises, institutions and personnel in 2022
GCC简介
使用API快捷创建ECS
2022 open source software security status report: over 41% of enterprises do not have enough confidence in open source security
什么是DAPP系统发展与解析理解
Zero foundation self-study SQL course | if function
关于Pytorch中双向LSTM的输出表示问题
Class pattern and syntax in JS 2021.11.10
setInterval、setTimeout和requestAnimationFrame
基于验证码识别的机器学习项目captcha_trainer操作实践
还在用 SimpleDateFormat 做时间格式化?小心项目崩掉!
JS foundation 4
零基础自学SQL课程 | IF函数
It is safer for individuals to choose which securities company to open an account for buying floor funds
工作组环境下的内网渗透:一些基础打法