Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi thank you for your brilliant code #22

Open
hameder opened this issue Mar 21, 2024 · 1 comment
Open

hi thank you for your brilliant code #22

hameder opened this issue Mar 21, 2024 · 1 comment

Comments

@hameder
Copy link

hameder commented Mar 21, 2024

when I run project-build I see this error what should I do

ERROR: The system cannot find the file specified.
C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\FreKotlin-release.aar

C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane>project-build
1 file(s) copied.
1 file(s) copied.

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

Scanning the drive for archives:
1 file, 6816 bytes (7 KiB)

Extracting archive: C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\FreKotlinANEExtract.zip

Path = C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\FreKotlinANEExtract.zip
Type = zip
Physical Size = 6816

Everything is Ok

Files: 2
Size: 6556
Compressed: 6816
1 file(s) copied.
The system cannot find the path specified.

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\FreKotlin-release.aar

System ERROR:
The system cannot find the file specified.
"GENERATING ANE"
no such file C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\classes.jar
usage:
adt -checkstore SIGNING_OPTIONS
adt -certificate -cn ( -ou )? ( -o )? ( -c )? ( -validityPeriod )? (2048-RSA | 4096-RSA)
adt -license
adt -help
adt -migrate SIGNING_OPTIONS ( | )
adt -package SIGNING_OPTIONS ( -target air )? ( FILE_OPTIONS | )
adt -package SIGNING_OPTIONS -target airn ( FILE-AND-PATH-OPTIONS | )
adt -package -target ( apk | apk-debug | apk-emulator | apk-captive-runtime ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) ( -airDownloadURL )? ( ARCH_OPTIONS )? SIGNING_OPTIONS ( PLATFORM-SDK-OPTION? FILE-AND-PATH-OPTIONS | PLATFORM-SDK-OPTION? )
adt -package -target ( aab | aab-debug ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) (SIGNING_OPTIONS?) ( FILE-AND-PATH-OPTIONS | ) PLATFORM-SDK-OPTION
adt -package -target ( android-studio | android-studio-debug ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) ( FILE-AND-PATH-OPTIONS | ) PLATFORM-SDK-OPTION
adt -package -target ( ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc | ipa-test-interpreter | ipa-debug-interpreter | ipa-test-interpreter-simulator | ipa-debug-interpreter-simulator ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) ( -sampler )? ANE_LINK_OPTIONS? AOT_MODE_OPTIONS? EMBED_BITCODE_OPTIONS? SIGNING_OPTIONS ( PLATFORM-SDK-OPTION? FILE-AND-PATH-OPTIONS | PLATFORM-SDK-OPTION? )
adt -package SIGNING_OPTIONS? -target native SIGNING_OPTIONS? ( FILE-AND-PATH-OPTIONS | )
adt -package SIGNING_OPTIONS? -migrate SIGNING_OPTIONS -target native SIGNING_OPTIONS? FILE_OPTIONS PATH-OPTION
adt -package SIGNING_OPTIONS? -target bundle SIGNING_OPTIONS? ARCH_OPTIONS? ( FILE-AND-PATH-OPTIONS | )
adt -package SIGNING_OPTIONS? -target ane ANE_OPTIONS
adt -prepare FILE_AND_PATH_OPTIONS
adt -sign SIGNING_OPTIONS ( -target ( air | airn | ane | bundle ) )? ( | | )
adt -devices PLATFORM-OPTION PLATFORM-SDK-OPTION?
adt -deviceLog PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION?
adt -installRuntime PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? ( -package )?
adt -installApp PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -package <apk-file | aab-file | ipa-file>
adt -uninstallRuntime PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION?
adt -uninstallApp PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -appid
adt -launchApp { PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? ( -debuggerPort port )? -appid }
adt -runtimeVersion PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION?
adt -appVersion PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -appid
adt -version

SIGNING_OPTIONS : -storetype ( -keystore )? ( -storepass )? ( -alias )? ( -keypass )? ( -providerName )? ( -tsa )? ( -provisioning-profile )?
FILE_OPTIONS : * ( ( -C

+ ) | ( -e ) )*
ARCH_OPTIONS : -arch (armv7 | x86 | x64 | armv8 )
CONNECT_OPTIONS : -connect
LISTEN_OPTIONS : -listen
ANE_LINK_OPTIONS : -hideAneLibSymbols ( yes | no )
ANE_OPTIONS : -swc ( -platform (-platformoptions )? * ( -C + )* )*
FILE-AND-PATH-OPTIONS: ( PATH-OPTION | FILE-OPTIONS ) FILE-AND-PATH-OPTIONS?
PATH-OPTION : ( -extdir | -resdir )
PLATFORM-OPTION : -platform (android | ios)
PLATFORM-SDK-OPTION : -platformsdk
DEVICE-OPTION : -device ( deviceID | ios-simulator )
AOT_MODE_OPTIONS : -useLegacyAOT ( yes | no )
EMBED_BITCODE_OPTIONS: -embedBitcode ( yes | no )
All commands can be preceeded by '-licenseFile (path)adt.lic' or '-licenseDevID DevID' to override the use of the lib/adt.lic file

The system cannot find the file specified.
The system cannot find the file specified.
Could Not Find C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\frekotlin-1.7.21.jar
Could Not Find C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\FreKotlin-release.aar
1 file(s) copied.
"DONE!"
1 file(s) copied.
1 file(s) copied.

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

Scanning the drive for archives:
1 file, 10735 bytes (11 KiB)

Extracting archive: C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\FreKotlinExampleANEExtract.zip

Path = C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\FreKotlinExampleANEExtract.zip
Type = zip
Physical Size = 10735

Everything is Ok

Files: 2
Size: 10475
Compressed: 10735
Copying library.swf into place.
1 file(s) copied.
copy the aar into place
1 file(s) copied.
"GETTING ANDROID JAR"

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

Scanning the drive for archives:
1 file, 352372 bytes (345 KiB)

Extracting archive: C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\app-release.aar

Path = C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane\platforms\android\app-release.aar
Type = zip
Physical Size = 352372

Everything is Ok

Size: 15626
Compressed: 352372
"GENERATING ANE"
"before deleting"
"DONE!"

C:\Users\hamed\Desktop\FreKotlin-Android-ANE-master\framework_src\native_extension\ane>

best regards

@hameder
Copy link
Author

hameder commented Mar 21, 2024

and this is you batch source and my changes are in bold style.
@echo off

call frekotlin-build.bat

SET pathtome=%~dp0
SET SZIP="C:\Program Files\7-Zip\7z.exe"
SET AIR_PATH="D:\software\Adobe.AIR.SDK.50.2.4.1\Adobe.AIR.SDK.50.2.4.1\bin"

SET projectName=FreKotlinExampleANE
SET ANE_NAME=com.tuarua.frekotlin.example

copy %pathtome%..\bin%projectName%.swc %pathtome%

REM contents of SWC.
copy /Y %pathtome%%projectName%.swc %pathtome%%projectName%Extract.swc
ren %pathtome%%projectName%Extract.swc %projectName%Extract.zip
call %SZIP% e %pathtome%%projectName%Extract.zip -o%pathtome%
del %pathtome%%projectName%Extract.zip

REM Copy library.swf to folders.
echo Copying library.swf into place.
copy %pathtome%library.swf %pathtome%platforms\android

echo copy the aar into place
copy /Y %pathtome%....\native_library\android%projectName%\app\build\outputs\aar\app-release.aar %pathtome%platforms\android\app-release.aar

echo "GETTING ANDROID JAR"
call %SZIP% x %pathtome%platforms\android\app-release.aar -o%pathtome%platforms\android\ classes.jar

echo "GENERATING ANE"
call %AIR_PATH%adt.bat -package -target ane %pathtome%%ANE_NAME%.ane extension.xml ^
-swc %projectName%.swc ^
-platform Android-x86 ^
-C platforms/android library.swf classes.jar ^
com.tuarua.%projectName%-res/. ^
-platformoptions platforms/android/platform.xml ^
-platform Android-ARM ^
-C platforms/android library.swf classes.jar ^
com.tuarua.%projectName%-res/. ^
-platformoptions platforms/android/platform.xml ^
-platform Android-ARM64 ^
-C platforms/android library.swf classes.jar ^
com.tuarua.%projectName%-res/. ^
-platformoptions platforms/android/platform.xml

echo "before deleting"

del %pathtome%platforms\android\classes.jar
del %pathtome%platforms\android\app-release.aar
del %pathtome%platforms\android\library.swf

call DEL /F /Q /A %pathtome%library.swf
call DEL /F /Q /A %pathtome%catalog.xml
call DEL /F /Q /A %pathtome%%projectName%.swc

echo "DONE!"

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant