Browse Source

change location of icons so it's persistant

pull/308/head
Chris 6 years ago
parent
commit
c7c2b6e6f2
  1. 4
      app/SupportedApps.php

4
app/SupportedApps.php

@ -130,14 +130,14 @@ abstract class SupportedApps
public static function saveApp($details, $app) public static function saveApp($details, $app)
{ {
$img_src = app_path('SupportedApps/'.className($details->name).'/'.$details->icon); $img_src = app_path('SupportedApps/'.className($details->name).'/'.$details->icon);
$img_dest = public_path('storage/supportedapps/'.$details->icon); $img_dest = public_path('storage/icons/'.$details->icon);
//die("i: ".$img_src); //die("i: ".$img_src);
copy($img_src, $img_dest); copy($img_src, $img_dest);
$app->appid = $details->appid; $app->appid = $details->appid;
$app->name = $details->name; $app->name = $details->name;
$app->sha = $details->sha ?? null; $app->sha = $details->sha ?? null;
$app->icon = 'supportedapps/'.$details->icon; $app->icon = 'icons/'.$details->icon;
$app->website = $details->website; $app->website = $details->website;
$app->license = $details->license; $app->license = $details->license;
$app->description = $details->description; $app->description = $details->description;

Loading…
Cancel
Save