当前位置:网站首页>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 .
边栏推荐
- AGCO AI frontier promotion (6.28)
- [practice] 1364- implement a perfect waterfall flow component on the mobile terminal (with source code)
- GCC introduction
- Analyze whether there is duplicate data in the list and repeat it several times
- This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors
- 个人买场内基金选择什么证券公司开户好,更安全
- JS foundation 2
- 合约量化系统开发(搭建讲解)丨合约量化系统开发(源码解析及现成案例)
- ProCAST有限元铸造工艺模拟软件
- 毕业了
猜你喜欢

Solve the problem of reading package listsdonebuilding dependency treereading state informationdone

网页提示此站点不安全解决方案

Web page tips this site is unsafe solution

Blue Bridge Cup Maze (dfs+ backtracking)

Thesis reading (59):keyword based diverse image retrieval with variable multiple instance graph

数据库系列:有什么办法对数据库的业务表进行无缝升级

js中的class类模式及语法 2021.11.10

Everyone can participate in open source! Here comes the most important developer activity in dragon lizard community

AGCO AI frontier promotion (6.28)

js中this的默认指向及如何修改指向 2021.11.09
随机推荐
day37 js笔记 运动函数 2021.10.11
Making and using of static library
使用 Calendar 计算时间
Introduction to GDB
2022 开源软件安全状况报告:超41%的企业对开源安全没有足够的信心
This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors
JS基础5
Basic 02: variable, remember the mobile number of the object
近况
MySQL cannot query the maximum value using the max function
数据库系列:有什么办法对数据库的业务表进行无缝升级
Mysql安装配置以及解决重装Mysql时忘记root password问题
Everyone can participate in open source! Here comes the most important developer activity in dragon lizard community
Day39 prototype chain and page fireworks effect 2021.10.13
使用API快捷创建ECS
day34 js笔记 正则表达式 2021.09.29
windows 10下载安装mysql5.7
基于验证码识别的机器学习项目captcha_trainer操作实践
方法重写(Override)
培训通知|2022年境外中资企业机构及人员疫情防控和安全防范专题培训通知