distriqt / air-imagescripts Goto Github PK
View Code? Open in Web Editor NEWScripts to generate iOS and Android icons and default launch images
Scripts to generate iOS and Android icons and default launch images
Hi,
After following steps, I see these messages in console
But I dont see any Assets.car file in folder, but i see icons of different size. Is it what it does or I am doing something wrong?
Thanks
I was previously working on an Intel MacBook Pro running Ventura. I recently upgraded to an M3 Max running Sonoma.
On my previous machine, I ran this in the terminal and it worked great:
/graphics/asset_car_gen/AIR-ImageScripts-master/generate.sh /graphics/asset_car_gen/icon.png /graphics/asset_car_gen/lauchscreen-assets/launchscreen.png "#ffffff" /Users/tonystech/Documents/nomo
On my new machine, it returns:
usage: /graphics/asset_car_gen/AIR-ImageScripts-master/generate.sh icon_image launch_image fill_bg_color [dst_dir]
I have imagemagick installed. I have both Xcode 15.1 and 14.3.1 installed. (I had to change the CFBundleVersion to 22265 in 14.3.1's plist in order to get it to open because Sonoma technically only runs 15). I switch between versions using
export DEVELOPER_DIR=/Applications/Xcode14.3.1.app/Contents/Developer
Is there something I'm missing? I tried my best to figure this out before asking :)
When i compile my IPA for release, I get this message:
And the compile fails.
If I remove LaunchScreen.storyboardc from the packaging it works fine.
Is this because HARMAN is packaging their own LaunchScreen.storyboardc file (in the free version) - and you're only allowed one, therefore I am not allowed to package my own?
Thanks
The storyboard shows white. we used your images to test, with the generate.sh.
Tested on ios 17 (ipad)
(we had the same problem generating with xcode, so we tried the command line (which was a lot easier btw))
We still add the default imgs as png in the compile command line, not sure if this is relevant.
Hi Michael!
I installed the requierements (brew, imagemagick) on my M1 Mac-mini and let the shell script run. All worked, all icons were created but not the Assets.car. Any idea what went wrong?
Best regards
Marc
marcwaesche@Mini-von-Marc assmaker % ./generate.sh 1024.png 2732.png "#ff0000"
USING:
icon=1024.png
launch=2732.png
Downloading assets
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 141 100 141 0 0 350 0 --:--:-- --:--:-- --:--:-- 354
100 152 100 152 0 0 263 0 --:--:-- --:--:-- --:--:-- 263
100 82640 100 82640 0 0 13970 0 0:00:05 0:00:05 --:--:-- 20220
Archive: .tmp.generate-assets.zip
creating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/
creating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/LaunchImage.imageset/
inflating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/LaunchImage.imageset/Contents.json
inflating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
creating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
inflating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
inflating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/Contents.json
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
inflating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
extracting: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/AppIcon.appiconset/[email protected]
inflating: /Users/marcwaesche/Desktop/assmaker/assets/Assets.xcassets/Contents.json
creating: /Users/marcwaesche/Desktop/assmaker/assets/LaunchScreen.storyboardc/
inflating: /Users/marcwaesche/Desktop/assmaker/assets/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib
inflating: /Users/marcwaesche/Desktop/assmaker/assets/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib
inflating: /Users/marcwaesche/Desktop/assmaker/assets/LaunchScreen.storyboardc/Info.plist
Generating icons
Generating Default pngs
Generating Assets.car
- Assets.car: Icons
- Assets.car: Icons created
- Assets.car: actool
- Assets.car: actool complete
cp: /Users/marcwaesche/Desktop/assmaker/tmp/Assets.car: No such file or directory
========== COMPLETE ==============
I've followed the tutorial for generating Assset.car and Launchscreen directory.
I've uploaded both files that are packaged in my root build ios directory.
Also added
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
to InfoAdditions
But still I see a black screen for a moment before the splash screen.
Any help appreciated. Note we have a license for AIR SDK
attached a video showing the problem
https://user-images.githubusercontent.com/19804341/119830628-2582c180-bf05-11eb-87da-d15da5a56fe1.mov
It makes the icon files but it seems to fail at asset.car creation:
Assets.car: AppIcon created
generate_appicon: AlternateIcon.appiconset doesn't exist - creating new icon set
Assets.car: AlternateIcon created
Assets.car: launch screen
Assets.car: actool
Assets.car: actool complete
cp: /Users/%user%/Documents/AIR-ImageScripts-master/.air-icon-generation-tmp/Assets.car: No such file or directory
And then the folder out structure looks very different than the example: it has icons but no asset.car and missing some icons
I ran the following script :
generate.sh icon.png launch.png "#6600cc" out
but i dont see the launch image and also the background color is still plain white.
I create assets for the application but I get the following error:
xcrun: error: unable to find utility "actool", not a developer tool or in PATH
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.