File indexing completed on 2021-12-21 14:33:23

0001 #!/usr/bin/env ruby
0002 
0003 # Copyright 2019 Harald Sitter <sitter@kde.org>
0004 #
0005 # This library is free software; you can redistribute it and/or
0006 # modify it under the terms of the GNU Lesser General Public
0007 # License as published by the Free Software Foundation; either
0008 # version 2.1 of the License, or (at your option) version 3, or any
0009 # later version accepted by the membership of KDE e.V. (or its
0010 # successor approved by the membership of KDE e.V.), which shall
0011 # act as a proxy defined in Section 6 of version 3 of the license.
0012 #
0013 # This library is distributed in the hope that it will be useful,
0014 # but WITHOUT ANY WARRANTY; without even the implied warranty of
0015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016 # Lesser General Public License for more details.
0017 #
0018 # You should have received a copy of the GNU Lesser General Public
0019 # License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0020 
0021 if Dir.exist?('calamares')
0022   Dir.chdir('calamares') do
0023     unless system('git', 'fetch', '--depth=1')
0024       raise 'failed to fetch'
0025     end
0026   end
0027 else
0028   unless system('git', 'clone', '--depth=1', 'https://github.com/calamares/calamares')
0029     raise 'failed to clone'
0030   end
0031 end
0032 
0033 p ['qmlscene', '-I', "#{Dir.pwd}/calamares/src/qml", '-geometry', '830x430', 'ubiquity-slideshow/slides/index.qml']
0034 exec('qmlscene', '-I', "#{Dir.pwd}/calamares/src/qml", '-geometry', '830x430', 'ubiquity-slideshow/slides/index.qml')