Some questions about the ADT command to export the AIR distribution

I've been using Flex for a while, and the export distribution has been exporting with Flashbuilder's own functionality.

There's nothing wrong with it other than being slow.

However, some time ago, it was found that the timestamp function of this function was checked and an error was reported. Various Baidu, found that Flashbuilder defaults to the check.

https://timestamp.geotrust.com/tsa to get a timestamp. But the worst thing is that this URL cannot be opened for a long time,

After 2 days of research, there is still no solution. If this problem is not solved, the air package without timestamp will no longer be able to be installed if the certificate expires .

Moreover, the certificate cannot be migrated without updating the expired air in the later stage.

After thinking about it, it is better to package it with the ADT command line. Manually specify the timestamp address.

I will share it with you below. (To be honest, very few people use Flex, and the resources on the Internet are poor. I hope that when reprinting, I can note the original text.)

Paste it, save it as a bat file and execute it. (The directory and related certificate parameters need to be modified when you use them for reference)

goto start

说明:

1:环境变量指定Flex SDK 4.1.0目录

2:进入源代码的bin-debug输出目录下.进行adt打包操作,默认打出来的包在该目录下

3:-storetype证书类型 -keystore证书目录 -tsa 获取时间戳URL -target native 转为exe

4:证书密码:123 此证书5年后到期.到时候请做迁移证书操作-migrate


:start

F:
CD \源代码\IPM3.0\ysSystem\bin-debug
adt -package -storetype pkcs12 -keystore F:\backupsun\packing\2018-3-6.p12 -tsa http://tsa.starfieldtech.com -target native ysSystem.exe ysSystem-app.xml .

 

I am using the exe package here. If you want air, just remove -target native.

And the biggest advantage is that it only takes 10 seconds to pack. It greatly increases the efficiency.

A possible website to refer to: https://help.adobe.com/zh_CN/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7fd6.html

 

Write at the end: 

Some websites that get timestamps only verify part of them.

http://time.certum.pl/
http://tsa.starfieldtech.com/ available
http://timestamp.comodoca.com/
https://timestamp.geotrust.com/tsa unavailable

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343142&siteId=291194637