ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: 'ionic resources` uses backslashes in images path

Open gmarziou opened this issue 11 years ago • 8 comments

Type: bug

Platform: mobile browser

When generating icon and splash screen with 'ionic resources' the paths to images are wrong as they use '' rather than '/'. I am using ionic 1.0.1 and ionic-cli 1.64 on Windows, I thought it was related to Windows but another forum member got it also on OSX: http://forum.ionicframework.com/t/ionic-resource-fail-to-copy-ios-icons-and-splash-screens/30139

gmarziou avatar Aug 10 '15 20:08 gmarziou

Will look into this. As far as I know, this should be handled by cordova. Will investigate.

mhartington avatar Aug 12 '15 03:08 mhartington

@mhartington what is the status?

gmarziou avatar Sep 24 '15 12:09 gmarziou

Can you try the beta release? npm install -g ionic@beta. If it's still not working mind posting over here? https://github.com/driftyco/ionic-cli/issues

mlynch avatar Dec 07 '15 05:12 mlynch

It did not make any difference.

I had to install beta release also in local npm install ionic@beta otherwise it complained about outdated ionic cli

ionic info

Your system information:

Cordova CLI: 5.3.3
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
OS: Windows 7 SP1
Node Version: v4.2.2
ionic resources
Ionic icon and splash screen resources generator
icon android drawable-ldpi-icon.png (36x36) from cache
icon android drawable-mdpi-icon.png (48x48) from cache
icon android drawable-hdpi-icon.png (72x72) from cache
icon android drawable-xhdpi-icon.png (96x96) from cache
icon android drawable-xxhdpi-icon.png (144x144) from cache
icon android drawable-xxxhdpi-icon.png (192x192) from cache
splash android drawable-port-ldpi-screen.png (240x320) from cache
splash android drawable-port-mdpi-screen.png (320x480) from cache
splash android drawable-port-hdpi-screen.png (480x800) from cache
splash android drawable-port-xhdpi-screen.png (720x1280) from cache
splash android drawable-port-xxhdpi-screen.png (960x1600) from cache
splash android drawable-port-xxxhdpi-screen.png (1280x1920) from cache

gmarziou avatar Dec 07 '15 13:12 gmarziou

related report from another repo: https://github.com/driftyco/ionic-cli/issues/625 I reproduce this on [email protected]

jakub-g avatar Feb 11 '16 11:02 jakub-g

Same issue in 1.7.16

dzlatic avatar Jul 20 '16 20:07 dzlatic

@mlynch @mhartington This still happens on Windows with ionic@beta as of when I am posting this

mbrookson avatar Jul 21 '16 17:07 mbrookson

@mhartington the solution I found is to completely delete the platforms folder and re run add platform ios then build

aymen-mouelhi avatar Jul 26 '16 19:07 aymen-mouelhi