Comments (19)
Alright I began testing all the releases from the last 2 weeks.
So I removed appman and replaced it for version 6.7 and up.
After I did this the issue no longer happens, even with the latest version 💀 so likely I fucked some module, or something got borked when appman updated back then.
I'll be closing this, hopefully the issue doesn't show up again.
from am.
@ivan-hc I'm testing cpu-x again because the dev said to have fixed the issue, but it doesn't look like it works 😭
from am.
have you tried to use the whole path?
from am.
I'm testing this ar appman in normal mode, no issue here
from am.
I'm testing this ar appman in normal mode, no issue here
The issue happens when I give it a relative path instead of a full path:
But it only happens the first time after I give it the ./cpu-x.sh
the second time it does pick up the file.
(btw that ln error in the screenshot is because I removed the cpu-x directory instead of running am -r
)
from am.
what if you name it cpu-x instead of cpu-x.sh?
from am.
what if you name it cpu-x instead of cpu-x.sh?
It will pull the cpu-x
script from the database instead of using the local one.
This is why I ran into this issue with mpv back then: #605
The icons dir wasn't being created because it was pulling the script with the issue from the database instead of using the local one that already had the mkdir /opt/"$APP"/icons
from am.
How does am -i
know when to use a local file vs pulling from the repo?
from am.
# Various cases that may occur during installation (for example if you use a third-party repository)
if test -f $APPSPATH/$arg/remove; then
echo " ◆ $(echo '"'$arg'"' | tr a-z A-Z): app already installed previously! Try removing it."
else
if test -f ./$arg 2> /dev/null; then
mkdir -p "$AMCACHEDIR"/tmp; cp ./$arg "$AMCACHEDIR"/tmp/$arg; cd "$AMCACHEDIR" || return; mv ./tmp/$arg ./$arg; rmdir ./tmp
_install_arg
elif test -f $arg 2> /dev/null; then
path2arg=$(echo "$arg")
arg=$(echo "$path2arg" | sed 's:.*/::')
cd "$AMCACHEDIR" || return; mkdir -p tmp; cd tmp || return; cp $path2arg ./$arg; cd ..; mv ./tmp/$arg ./$arg; rmdir ./tmp
_install_arg
elif test -f "$AMPATH/neodb"; then
rm -R -f "$AMCACHEDIR/multirepo-args"
MULTIREPO=$(cat "$AMPATH/neodb" | grep "Source=" | sed 's/Source=//g')
for anyrepo in $MULTIREPO; do
if curl --output /dev/null --silent --head --fail $anyrepo/$arg 1>/dev/null; then
echo "$anyrepo" >> "$AMCACHEDIR/multirepo-args"
fi
done
if test -f "$AMCACHEDIR/multirepo-args"; then
anyrepoargs=$(cat "$AMCACHEDIR/multirepo-args" 2>/dev/null | wc -l)
if [ $anyrepoargs -gt 0 ]; then
if curl --output /dev/null --silent --head --fail $APPSDB/$arg 1>/dev/null; then
echo "$APPSDB" >> "$AMCACHEDIR/multirepo-args"
fi
anyrepoargall=$(cat "$AMCACHEDIR/multirepo-args" 2>/dev/null | wc -l)
if [ $anyrepoargall == 1 ]; then
cd "$AMCACHEDIR" || return; mkdir -p tmp; cd tmp || return; wget -q "$(cat "$AMCACHEDIR/multirepo-args" | head -1)/$arg"; cd ..; mv ./tmp/$arg ./$arg; rmdir ./tmp
rm -R -f "$AMCACHEDIR/multirepo-args"
_install_arg
else
echo -e "\n ◆ FOUND $(echo '"'$arg'"' | tr a-z A-Z) FROM MULTIPLE SOURCES:\n" &&
printf " Select a URL from this menu (read carefully) or press CTRL+C to abort:\n\n"; sleep 1;
select d in $(cat "$AMCACHEDIR/multirepo-args"); do test -n "$d" && break; echo ">>> Invalid Selection"; done
cd "$AMCACHEDIR" || return; mkdir -p tmp; cd tmp || return; wget -q "$d/$arg"; cd ..; mv ./tmp/$arg ./$arg; rmdir ./tmp
rm -R -f "$AMCACHEDIR/multirepo-args"
_install_arg
fi
elif curl --output /dev/null --silent --head --fail $APPSDB/$arg 1>/dev/null; then
cd "$AMCACHEDIR" || return; mkdir -p tmp; cd tmp || return; wget -q $APPSDB/$arg; cd ..; mv ./tmp/$arg ./$arg; rmdir ./tmp
rm -R -f "$AMCACHEDIR/multirepo-args"
_install_arg
else
echo ' 💀 ERROR: "'$arg'" does NOT exist in the database, see "'$AMCLI' -l"'
fi
elif curl --output /dev/null --silent --head --fail $APPSDB/$arg 1>/dev/null; then
cd "$AMCACHEDIR" || return; mkdir -p tmp; cd tmp || return; wget -q $APPSDB/$arg; cd ..; mv ./tmp/$arg ./$arg; rmdir ./tmp
_install_arg
else
echo ' 💀 ERROR: "'$arg'" does NOT exist in the database, see "'$AMCLI' -l"'
fi
elif curl --output /dev/null --silent --head --fail $APPSDB/$arg 1>/dev/null; then
cd "$AMCACHEDIR" || return; mkdir -p tmp; cd tmp || return; wget -q $APPSDB/$arg; cd ..; mv ./tmp/$arg ./$arg; rmdir ./tmp
_install_arg
else
echo ' 💀 ERROR: "'$arg'" does NOT exist in the database, see "'$AMCLI' -l"'
fi
fi
from am.
it should work exactly as first choice
# Various cases that may occur during installation (for example if you use a third-party repository)
if test -f $APPSPATH/$arg/remove; then
echo " ◆ $(echo '"'$arg'"' | tr a-z A-Z): app already installed previously! Try removing it."
else
if test -f ./$arg 2> /dev/null; then
mkdir -p "$AMCACHEDIR"/tmp; cp ./$arg "$AMCACHEDIR"/tmp/$arg; cd "$AMCACHEDIR" || return; mv ./tmp/$arg ./$arg; rmdir ./tmp
_install_arg
from am.
I really don't know why this happens then:
I thought that the issue was that I was using ./cpu-x.sh
and am interpreted that as ././cpu-x.sh
so I tested just putting cpu-x.sh
without the ./
and it still fails the first time for some reason.
from am.
Reopening this.
I took this screenshot when I was editing the brave scripts:
from am.
brave? were they not ok?
from am.
It happens with any script:
I add the .sh
because otherwise am will pull the existing script instead of the local one.
from am.
I cannot reproduce the issue... also I see that "AM" suggests appman -l
, so I supposed you were working in AppMan Mode... but I can't see the message
This is ./adb.sh installed with normal AM
and this is AM in AppMan mode
I've no ideaon why this happens to you.
from am.
I'm not sure on why all tests in the PR are a failure, however to drag/drop the script always works in this case.
I think I give up this time.
from am.
Thats ok, I will have a look at how the whole install module works
from am.
if not to solve this issue, function will help to understand more how this module works.
from am.
@Samueru-sama a tip: since the module uses the "select" command, SHELL have not an alternative for that.
This is why this, but also the script to install "wine" are BASH scripts.
from am.
Related Issues (20)
- Addition Request HOT 2
- Add pcsx-redux AppImage HOT 13
- move bash_completion file to $XDG_CONFIG_HOME"/bash-completion HOT 10
- New apps (again) + other issues HOT 55
- Some apps do not update properly HOT 16
- Adding the repos of AM to `dbin`? HOT 11
- Permission issue HOT 6
- installing simplescreenrecorder breaks "appman list" HOT 7
- AppMan downloads old version of "mcpelauncher" HOT 1
- Change the way icons are handled to automatically follow icon theme. HOT 31
- [Request] Add App HOT 3
- Apps HOT 2
- Make it easy to update app versions frequently, allow for manual installation HOT 4
- Using `am -h` command shows an error HOT 3
- Icons for appimages HOT 13
- Problem with certain apps HOT 19
- portable app suggestions HOT 11
- How do I remove AM or Appman? HOT 1
- [AUR Package] HOT 3
- [Package Request] GNU IceCat HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from am.