zoukankan      html  css  js  c++  java
  • 修复lazarus LAMW releasekeystore.bat 无法生成.keystore文件

           使用LAMW发现不能生成带签名APK,经跟踪发现LAMW生成的release-keystore.bat在keytool前有LC_ALL=C造成不法生成.keystore 文件,删除后就能正常生成keystore文件和带签名的APK。更新:向官方反馈后2021.1.6已修复此问题

    set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60
    set PATH=%JAVA_HOME%\bin;%PATH%
    set JAVA_TOOL_OPTIONS=-Duser.language=en
    cd D:\fpcupdeluxe3\projects\LAMWProjects\AppLAMWProject6
    LC_ALL=C keytool -genkey -v -keystore applamwproject6-release.keystore -alias applamwproject6.keyalias -keyalg RSA -keysize 2048 -validity 10000 < D:\fpcupdeluxe3\projects\LAMWProjects\AppLAMWProject6\keytool_input.txt
    :Error
    echo off
    cls
    echo.
    echo Signature file created previously, remember that if you delete this file and it was uploaded to Google Play, you will not be able to upload another app without this signature.
    echo.
    pause

    release-keystore.bat这个文件是新建APK时自动生成的,只需将lamw\android_wizard\AndroidWizard_intf.pas第2219行的LC_ALL=C删除,然后重新编译lazarus就可以。

     修改为:

    重新编译的lazarus在新建安卓项目工程时生成正确的release-keystore.bat,不用每次新建项目时都要修改release-keystore.bat。

  • 相关阅读:
    通过存储过程的游标修改某个字段的全部数据
    spring cloud配置注册中心显示服务的ip地址和端口
    git几个必知托管平台
    hdu5790
    hdu5794
    hdu5739
    hdu5829
    线性规划初探
    bzoj4199
    bzoj4197
  • 原文地址:https://www.cnblogs.com/qiufeng2014/p/15761421.html
Copyright © 2011-2022 走看看